* gcc.dg/noncompile/label-lineno-1.c: New test.
From-SVN: r35924
This commit is contained in:
parent
bdb47d3ef8
commit
7eda0d2ddf
@ -1,3 +1,7 @@
|
||||
2000-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* gcc.dg/noncompile/label-lineno-1.c: New test.
|
||||
|
||||
2000-08-23 Joseph S. Myers <jsm28@cam.ac.uk>
|
||||
|
||||
* gcc.dg/c99-array-nonobj-1.c: New test.
|
||||
|
14
gcc/testsuite/gcc.dg/noncompile/label-lineno-1.c
Normal file
14
gcc/testsuite/gcc.dg/noncompile/label-lineno-1.c
Normal file
@ -0,0 +1,14 @@
|
||||
/* Ensure that diagnostics for labels appear on the correct lineno.
|
||||
by Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/23/2000. */
|
||||
|
||||
int
|
||||
foo(int i)
|
||||
{
|
||||
my_label:
|
||||
|
||||
i++;
|
||||
|
||||
my_label: /* { dg-error "duplicate label" "label lineno" } */
|
||||
|
||||
i++;
|
||||
}
|
Loading…
Reference in New Issue
Block a user