2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / noncompile / label-lineno-1.c
blob0c5599434f8bd51cfb7e6aada26aa69fd940431d
1 /* Ensure that diagnostics for labels appear on the correct lineno.
2 by Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/23/2000. */
4 void
5 foo(int i)
7 my_label: /* { dg-error "previously defined" "prev label" } */
9 i++;
11 my_label: /* { dg-error "duplicate label" "label lineno" } */
13 i++;