diff options
Diffstat (limited to 'clang/test/Sema/i-c-e.c')
-rw-r--r-- | clang/test/Sema/i-c-e.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/test/Sema/i-c-e.c b/clang/test/Sema/i-c-e.c index eb77bbe3b99..b4a6a69ccef 100644 --- a/clang/test/Sema/i-c-e.c +++ b/clang/test/Sema/i-c-e.c @@ -50,11 +50,9 @@ char y[__builtin_constant_p(expr) ? -1 : 1]; char z[__builtin_constant_p(4) ? 1 : -1]; // Comma tests -int comma1[0?1,2:3]; // expected-warning {{expression result unused}} -int comma2[1||(1,2)]; // expected-warning {{expression result unused}} \ - // expected-warning {{use of logical || with constant operand}} -int comma3[(1,2)]; // expected-warning {{size of static array must be an integer constant expression}} \ - // expected-warning {{expression result unused}} +int comma1[0?1,2:3]; +int comma2[1||(1,2)]; // expected-warning {{use of logical || with constant operand}} +int comma3[(1,2)]; // expected-warning {{size of static array must be an integer constant expression}} // Pointer + __builtin_constant_p char pbcp[__builtin_constant_p(4) ? (intptr_t)&expr : 0]; // expected-error {{variable length array declaration not allowed at file scope}} |