PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / volatile14.f90
blob15730c83f9b39a178e3228a0217399b61cf57680
1 ! { dg-do compile }
3 ! PR 46459: ICE (segfault): Invalid read in compare_actual_formal [error recovery]
5 ! Contributed by Harald Anlauf <anlauf@gmx.de>
7 call sub (1)
8 contains
9 subroutine sub (j)
10 integer, volatile :: j
11 end subroutine
12 end
14 subroutine sub1 ()
15 call sub2 (1) ! { dg-error "Explicit interface required" }
16 end subroutine
18 subroutine sub2 (j)
19 integer, volatile :: j
20 end subroutine
22 subroutine sub3 ()
23 interface
24 subroutine sub2 (j)
25 integer, volatile :: j
26 end subroutine
27 end interface
28 call sub2 (1)
29 end subroutine