Merge from mainline
[official-gcc.git] / gcc / testsuite / gfortran.dg / label_4.f90
blob68b2291fbeac5fe1c2b8f4a96e6603ff8a1d20b9
1 ! { dg-do compile }
2 ! { dg-options "-Wunused-labels" }
3 ! PR 26277
4 ! We used to give an incorect warning about label 99 not being referenced
5 open(unit=12,err=99)
6 99 print *,"could not open file ..."
7 98 continue ! { dg-warning "Label 98 .* defined but not used" }
8 end