diff options
Diffstat (limited to 'test/Sema/array-init.c')
-rw-r--r-- | test/Sema/array-init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/array-init.c b/test/Sema/array-init.c index dfaaa87ef5..50148a83ae 100644 --- a/test/Sema/array-init.c +++ b/test/Sema/array-init.c @@ -261,3 +261,5 @@ void test_matrix() { 13.0f, 14.0f, 15.0f, 16.0f }; } + +char badchararray[1] = { badchararray[0], "asdf" }; // expected-warning {{excess elements in array initializer}} expected-error {{initializer element is not a compile-time constant}} |