parent
f2760b279a
commit
d872905426
|
@ -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