summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/contains_empty_2.f03
blob: 62e18f43d14e5a96db7d9bad3e863e503eeb43f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do compile }
! { dg-options "-std=f2008 -pedantic" }

program test
  print *, 'hello there'
contains
end program test

module truc
  integer, parameter :: answer = 42
contains
end module truc

! { dg-final { cleanup-modules "truc" } }