diff options
Diffstat (limited to 'test/Sema/compound-literal.c')
-rw-r--r-- | test/Sema/compound-literal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/compound-literal.c b/test/Sema/compound-literal.c index 08c30b3..aade464 100644 --- a/test/Sema/compound-literal.c +++ b/test/Sema/compound-literal.c @@ -11,7 +11,7 @@ static int x = (int){1}; static int *p2 = (int []){2,x}; // -expected-error {{initializer element is not a compile-time constant}} static long *p3 = (long []){2,"x"}; // -expected-warning {{incompatible pointer to integer conversion initializing 'long' with an expression of type 'char [2]'}} -typedef struct { } cache_t; // -expected-warning{{use of empty struct extension}} +typedef struct { } cache_t; // -expected-warning{{empty struct (accepted as an extension) has size 0 in C, size 1 in C++}} static cache_t clo_I1_cache = ((cache_t) { } ); // -expected-warning{{use of GNU empty initializer extension}} typedef struct Test {int a;int b;} Test; |