diff options
Diffstat (limited to 'clang/test/Sema/c89.c')
| -rw-r--r-- | clang/test/Sema/c89.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Sema/c89.c b/clang/test/Sema/c89.c index 038f7e537d7..670dd15539f 100644 --- a/clang/test/Sema/c89.c +++ b/clang/test/Sema/c89.c @@ -80,3 +80,5 @@ void test13b() { /* Make sure we allow *test14 as a "function designator" */ int test14() { return (&*test14)(); } + +int test15[5] = { [2] = 1 }; /* expected-warning {{designated initializers are a C99 feature}} */ |

