diff options
Diffstat (limited to 'test/Sema/array-init.c')
-rw-r--r-- | test/Sema/array-init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/array-init.c b/test/Sema/array-init.c index 510a7792d1..5b22681d1b 100644 --- a/test/Sema/array-init.c +++ b/test/Sema/array-init.c @@ -103,6 +103,11 @@ void legal() { }; } +unsigned char asso_values[] = { 34 }; +int legal2() { + return asso_values[0]; +} + void illegal() { short q2[4][][2] = { // expected-error{{array has incomplete element type 'short [][2]'}} { 1, 0, 0, 0, 0, 0 }, |