diff options
Diffstat (limited to 'clang/test/Sema/c89.c')
-rw-r--r-- | clang/test/Sema/c89.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/c89.c b/clang/test/Sema/c89.c index a410a626eda..557acf6d62d 100644 --- a/clang/test/Sema/c89.c +++ b/clang/test/Sema/c89.c @@ -116,3 +116,7 @@ long long ll1 = /* expected-warning {{'long long' is an extension when C99 mode unsigned long long ull1 = /* expected-warning {{'long long' is an extension when C99 mode is not enabled}} */ 42ULL; /* expected-warning {{'long long' is an extension when C99 mode is not enabled}} */ +void test17(int v, int w) { + int a[2] = { v, w }; /* expected-warning {{initializer for aggregate is not a compile-time constant}} */ +} + |