1 /* Test diagnostics for addresses of labels and computed gotos. Test
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-pedantic" } */
10 void *p
= &&a
; /* { dg-warning "taking the address of a label is non-standard" } */
11 goto *p
; /* { dg-warning "ISO C forbids 'goto \\*expr;'" } */