diff options
Diffstat (limited to 'test/Sema/compound-literal.c')
-rw-r--r-- | test/Sema/compound-literal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/compound-literal.c b/test/Sema/compound-literal.c index a650d12de9..0c8ddd42d0 100644 --- a/test/Sema/compound-literal.c +++ b/test/Sema/compound-literal.c @@ -31,3 +31,6 @@ void IncompleteFunc(unsigned x) { (void){1,2,3}; // -expected-error {{variable has incomplete type}} (void(void)) { 0 }; // -expected-error{{illegal initializer type 'void (void)'}} } + +// PR6080 +int array[(sizeof(int[3]) == sizeof( (int[]) {0,1,2} )) ? 1 : -1]; |