diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/ext/complit3.C')
-rw-r--r-- | gcc/testsuite/g++.dg/ext/complit3.C | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/complit3.C b/gcc/testsuite/g++.dg/ext/complit3.C new file mode 100644 index 000000000..a54a8bce1 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/complit3.C @@ -0,0 +1,8 @@ +// { dg-options "" } + +int Compound_Literals_0() +{ + static int y[] = (int []) {1, 2, 3}; // { dg-error "init" } + static int z[] = (int [3]) {1}; // { dg-error "init" } + return y[0]+z[0]; +} |