arm: Add .type and .size to __gnu_cmse_nonsecure_call [PR115360]
[official-gcc.git] / gcc / testsuite / gfortran.dg / access_spec_3.f90
blob838b47b2f4b80ec4083edb19e164404a08a98b06
1 ! { dg-do compile }
3 ! Tests the fix for PR36454, where the PUBLIC declaration for
4 ! aint and bint was rejected because the access was already set.
6 ! Contributed by Thomas Orgis <thomas.orgis@awi.de>
8 module base
9 integer :: baseint
10 end module
12 module a
13 use base, ONLY: aint => baseint
14 end module
16 module b
17 use base, ONLY: bint => baseint
18 end module
20 module c
21 use a
22 use b
23 private
24 public :: aint, bint
25 end module
27 program user
28 use c, ONLY: aint, bint
30 aint = 3
31 bint = 8
32 write(*,*) aint
33 end program