diff options
Diffstat (limited to 'test/Sema')
-rw-r--r-- | test/Sema/array-constraint.c | 2 | ||||
-rw-r--r-- | test/Sema/flexible-array-init.c | 2 | ||||
-rw-r--r-- | test/Sema/incomplete-decl.c | 2 | ||||
-rw-r--r-- | test/Sema/pointer-addition.c | 2 |
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}} |