URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [vla-init-4.c] - Rev 154
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test for ICE on VLA compound literal. */ /* Origin: Joseph Myers <jsm@polyomino.org.uk> */ /* { dg-do compile } */ /* { dg-options "" } */ const int i = 1; void foo() { char *p = (char [i]){ "" }; } /* { dg-error "error: compound literal has variable size" } */
Go to most recent revision | Compare with Previous | Blame | View Log