Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / comp-goto-3.c
blobadd18613d75884643926f1a620d16ad65f11e2c7
1 /* Test diagnostics for addresses of labels and computed gotos. Test
2 with -pedantic-errors. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-pedantic-errors" } */
7 void
8 f (void)
10 void *p = &&a; /* { dg-error "error: taking the address of a label is non-standard" } */
11 goto *p; /* { dg-error "error: ISO C forbids 'goto \\*expr;'" } */
12 a: ;