New test case.
From-SVN: r33401
This commit is contained in:
parent
f2760b279a
commit
d872905426
15
gcc/testsuite/g++.old-deja/g++.martin/crash1.C
Normal file
15
gcc/testsuite/g++.old-deja/g++.martin/crash1.C
Normal file
@ -0,0 +1,15 @@
|
||||
// Build don't link:
|
||||
int i = 4;
|
||||
struct S{
|
||||
char c[i]; // ERROR - size not constant
|
||||
int h;
|
||||
int foo(){
|
||||
return h;
|
||||
}
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
S x;
|
||||
int i = x.foo();
|
||||
}
|
Loading…
Reference in New Issue
Block a user