Commit 7eda0d2d by Kaveh R. Ghazi Committed by Kaveh Ghazi

* gcc.dg/noncompile/label-lineno-1.c: New test.

From-SVN: r35924
parent bdb47d3e
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.
......
/* 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++;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment