1 /* Test for -Wtraditional warnings on label conflicts with identifiers.
2 Note, gcc should omit these warnings in system header files.
3 Origin: Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/24/2000. */
4 /* { dg-do compile } */
5 /* { dg-options "-Wtraditional" } */
8 struct foo2
{ int i
; };
22 foo4
: /* { dg-warning "traditional C lacks" "label conflicts with identifier" } */
23 foo5
: /* { dg-warning "traditional C lacks" "label conflicts with identifier" } */
24 foo6
: /* { dg-warning "traditional C lacks" "label conflicts with identifier" } */
25 foo7
: /* { dg-warning "traditional C lacks" "label conflicts with identifier" } */
26 testfunc1
: /* { dg-warning "traditional C lacks" "label conflicts with identifier" } */
27 a
: /* { dg-warning "traditional C lacks" "label conflicts with identifier" } */
33 /* We are in system headers now, no -Wtraditional warnings should issue. */