diff options
author | James Molloy <james.molloy@arm.com> | 2012-02-28 18:12:11 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2012-02-28 18:12:11 +0000 |
commit | fbcf0405b7da1c8606e4223b4f91835643ecd5b4 (patch) | |
tree | 94f15f288c984dd3be38734e6c2f1e04c5d53c2d /test/Misc/warning-flags.c | |
parent | f911242f43ae1b0a85c323631fe817df95c9cbe9 (diff) |
Correctly track tags and enum members defined in the prototype of a function, and ensure they are properly scoped.
This fixes code such as:
enum e {x, y};
int f(enum {y, x} n) {
return 0;
}
This finally fixes PR5464 and PR5477.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Misc/warning-flags.c')
-rw-r--r-- | test/Misc/warning-flags.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Misc/warning-flags.c b/test/Misc/warning-flags.c index 6621f08fcf..5c0e80055a 100644 --- a/test/Misc/warning-flags.c +++ b/test/Misc/warning-flags.c @@ -17,7 +17,7 @@ This test serves two purposes: The list of warnings below should NEVER grow. It should gradually shrink to 0. -CHECK: Warnings without flags (257): +CHECK: Warnings without flags (256): CHECK-NEXT: ext_anonymous_struct_union_qualified CHECK-NEXT: ext_binary_literal CHECK-NEXT: ext_cast_fn_obj @@ -137,7 +137,6 @@ CHECK-NEXT: warn_conv_to_base_not_used CHECK-NEXT: warn_conv_to_self_not_used CHECK-NEXT: warn_conv_to_void_not_used CHECK-NEXT: warn_cxx0x_right_shift_in_template_arg -CHECK-NEXT: warn_decl_in_param_list CHECK-NEXT: warn_delete_array_type CHECK-NEXT: warn_division_by_zero CHECK-NEXT: warn_double_const_requires_fp64 |