blob: 5a81d7ed806d8a3d80a7e2ccc9497eada6814132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// { dg-do assemble }
int i = 4;
struct S{
char c[i]; // { dg-error "" } size not constant
int h;
int foo(){
return h;
}
};
int main()
{
S x;
int i = x.foo();
}
|