aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/enum.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-23 23:12:31 +0000
committerChris Lattner <sabre@nondot.org>2008-11-23 23:12:31 +0000
commit5f4a6829dc58cab2f76e2b98492859aa3b91e3f2 (patch)
treec2c13ad4ad80fdb53222315c85fa883abf36becc /test/Sema/enum.c
parentb8b96aff63e24ff1509f112de871f697aaea55f9 (diff)
Make all the 'redefinition' diagnostics more consistent, and make the
"previously defined here" diagnostics all notes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/enum.c')
-rw-r--r--test/Sema/enum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Sema/enum.c b/test/Sema/enum.c
index ba93aaa2ee..b06882b4d3 100644
--- a/test/Sema/enum.c
+++ b/test/Sema/enum.c
@@ -30,8 +30,8 @@ int test2(int i)
}
// PR2020
-union u0; // expected-error {{previous use is here}}
-enum u0 { U0A }; // expected-error {{error: use of 'u0' with tag type that does not match previous declaration}}
+union u0; // expected-note {{previous use is here}}
+enum u0 { U0A }; // expected-error {{use of 'u0' with tag type that does not match previous declaration}}
// rdar://6095136
@@ -52,6 +52,6 @@ void test4() {
enum someenum {}; // expected-warning {{use of empty enum extension}}
// <rdar://problem/6093889>
-enum e0 { // expected-error {{previous definition is here}}
+enum e0 { // expected-note {{previous definition is here}}
E0 = sizeof(enum e0 { E1 }) // expected-error {{nested redefinition}}
};