diff options
Diffstat (limited to 'clang/test/Sema/switch-1.c')
-rw-r--r-- | clang/test/Sema/switch-1.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/switch-1.c b/clang/test/Sema/switch-1.c index 144c3607f57..0d31a191c4f 100644 --- a/clang/test/Sema/switch-1.c +++ b/clang/test/Sema/switch-1.c @@ -55,5 +55,8 @@ int f(int i) { // rdar://18405357 unsigned long long l = 65536 * 65536; // expected-warning {{overflow in expression; result is 0 with type 'int'}} +#ifndef __cplusplus +// expected-error@-2 {{not a compile-time constant}} +#endif unsigned long long l2 = 65536 * (unsigned)65536; unsigned long long l3 = 65536 * 65536ULL; |