X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Funused-3.c;h=120562448aaf5345f27ebf0b1bb69c57188a031c;hb=22c1d3019e6a942f8f11eb6cb3ec036343e8b6e3;hp=259b8d0fb79c0c134f4221f89e71122a98888b54;hpb=4207ffea36574e0e0c4631e73c73735056216517;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/testsuite/gcc.dg/unused-3.c b/gcc/testsuite/gcc.dg/unused-3.c index 259b8d0fb79..120562448aa 100644 --- a/gcc/testsuite/gcc.dg/unused-3.c +++ b/gcc/testsuite/gcc.dg/unused-3.c @@ -1,10 +1,14 @@ /* Copyright (C) 2000 Free Software Foundation. */ +/* Added extra line-breaks to check that diagnostics refer to correct token. + --Per Bothner. */ /* { dg-do compile } */ /* { dg-options "-Wunused" } */ typedef short unused_type __attribute__ ((unused)); main () { - short x; /* { dg-warning "unused variable" "unused variable warning" } */ + short + x /* { dg-warning "unused variable" "unused variable warning" } */ + ; unused_type y; }