URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [stmt-expr-label-2.c] - Rev 298
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test for labels in statement expressions: bugs 772 and 17913. switch statements must not jump into statement expressions. */ /* Origin: Joseph Myers <joseph@codesourcery.com> */ /* { dg-do compile } */ /* { dg-options "" } */ void f (int a) { switch (a) /* { dg-message "here" } */ { case 0: case 1: ({ case 2: /* { dg-error "switch jumps into statement expression" } */ default: /* { dg-error "switch jumps into statement expression" } */ switch (a) { case 3: default: ; } 0; }); } }
Go to most recent revision | Compare with Previous | Blame | View Log