blob: 0a25e58b7cc484c074994fb81e46b1f25fca80fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
! { dg-do compile }
! { dg-options "-fdiagnostics-show-caret" }
! { dg-allow-blank-lines-in-output 1 }
program main
goto 1000
1000 continue ! first instance
1000 continue ! second instance
end
#if 0
! { dg-locus "4" "" { target *-*-* } "7" }
! { dg-begin-multiline-output "" }
1000 continue ! first instance
1
1000 continue ! second instance
2
Error: Duplicate statement label 1000 at (1) and (2)
! { dg-end-multiline-output "" }
#endif
|