aboutsummaryrefslogtreecommitdiff
path: root/test/Sema
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-02-07 19:52:04 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-02-07 19:52:04 +0000
commit3cb069213c8502dbb7a67860d40122d869ed8fd6 (patch)
tree1c0af540b50bee10d56de5da09e7b8177306bbe9 /test/Sema
parent72cac2ccce8058833f56358e3391e28a8ddeeaa4 (diff)
Make one expected-diag directive match exactly one actual diagnostic.
This uncovers some bugs, so several test cases now fail. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64025 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema')
-rw-r--r--test/Sema/array-constraint.c2
-rw-r--r--test/Sema/flexible-array-init.c2
-rw-r--r--test/Sema/incomplete-decl.c2
-rw-r--r--test/Sema/pointer-addition.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/Sema/array-constraint.c b/test/Sema/array-constraint.c
index 69475b76f6..d35b0acdfe 100644
--- a/test/Sema/array-constraint.c
+++ b/test/Sema/array-constraint.c
@@ -1,6 +1,6 @@
// RUN: clang -fsyntax-only -verify -pedantic %s
-struct s; // expected-note {{forward declaration of 'struct s'}}
+struct s; // expected-note 2 {{forward declaration of 'struct s'}}
struct s* t (struct s z[]) { // expected-error {{array has incomplete element type}}
return z;
}
diff --git a/test/Sema/flexible-array-init.c b/test/Sema/flexible-array-init.c
index 9ef6eb3bc0..99ef66abe9 100644
--- a/test/Sema/flexible-array-init.c
+++ b/test/Sema/flexible-array-init.c
@@ -12,7 +12,7 @@ void test() {
struct foo {
int x;
- int y[]; // expected-note{{initialized flexible array member 'y' is here}}
+ int y[]; // expected-note 3 {{initialized flexible array member 'y' is here}}
};
struct bar { struct foo z; };
diff --git a/test/Sema/incomplete-decl.c b/test/Sema/incomplete-decl.c
index bd603681d6..be52cfd707 100644
--- a/test/Sema/incomplete-decl.c
+++ b/test/Sema/incomplete-decl.c
@@ -1,6 +1,6 @@
// RUN: clang -fsyntax-only -verify %s
-struct foo; // expected-note {{forward declaration of 'struct foo'}}
+struct foo; // expected-note 4 {{forward declaration of 'struct foo'}}
void b; // expected-error {{variable has incomplete type 'void'}}
struct foo f; // expected-error {{variable has incomplete type 'struct foo'}}
diff --git a/test/Sema/pointer-addition.c b/test/Sema/pointer-addition.c
index 81a1dc06c1..3a924b0082 100644
--- a/test/Sema/pointer-addition.c
+++ b/test/Sema/pointer-addition.c
@@ -1,6 +1,6 @@
// RUN: clang %s -fsyntax-only -verify -pedantic
-typedef struct S S; // expected-note{{forward declaration of 'struct S'}}
+typedef struct S S; // expected-note 3 {{forward declaration of 'struct S'}}
void a(S* b, void* c) {
void (*fp)(int) = 0;
b++; // expected-error {{arithmetic on pointer to incomplete type}}