Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/noncompile/pr30552-2.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* PR c/30552 */ | |
2 | |
3 /* Another example of a statement expression as formal array argument size in | |
4 * nested old-style function declaration should generate user error, not | |
5 * internal compiler error. */ | |
6 | |
7 /* { dg-do compile } */ | |
8 /* { dg-options "" } */ | |
9 | |
10 int main() | |
11 { | |
12 void fun(a) | |
13 int a[({int b=2; b;})]; /* { dg-error "braced-group within expression allowed only inside a function" } */ | |
14 { | |
15 } | |
16 return 0; | |
17 } |