summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/control-scope.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/control-scope.c')
-rw-r--r--clang/test/Parser/control-scope.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Parser/control-scope.c b/clang/test/Parser/control-scope.c
index 3d588d63b4c..4beed7eecd3 100644
--- a/clang/test/Parser/control-scope.c
+++ b/clang/test/Parser/control-scope.c
@@ -1,8 +1,8 @@
-// RUN: not clang %s -std=c90 &&
+// RUN: clang %s -std=c90 -verify &&
// RUN: clang %s -std=c99
int f (int z) {
- if (z + sizeof (enum {a}))
- return 1 + sizeof (enum {a});
+ if (z + sizeof (enum {a})) // expected-note {{previous definition is here}}
+ return 1 + sizeof (enum {a}); // expected-error {{redefinition of enumerator 'a'}}
return 0;
}
OpenPOWER on IntegriCloud