diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/label_4.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/label_4.f90 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/label_4.f90 b/gcc/testsuite/gfortran.dg/label_4.f90 new file mode 100644 index 000000000..2a32f31a0 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/label_4.f90 @@ -0,0 +1,9 @@ +! { dg-do compile } +! { dg-options "-Wunused-label" } +! PR 26277 +! We used to give an incorect warning about label 99 not being referenced + open(unit=12,err=99) +99 print *,"could not open file ..." +98 continue ! { dg-warning "Label 98 .* defined but not used" } + close(unit=12,status="delete") +end |