Skip to content

Commit 2e3c73b

Browse files
committed
rebase
1 parent c81d449 commit 2e3c73b

File tree

1 file changed

+17
-27
lines changed

1 file changed

+17
-27
lines changed

flang/test/Semantics/modfile75.f90

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
1-
! RUN: %python %S/test_modfile.py %s %flang_fc1
2-
module m
3-
type dt
4-
procedure(sub), pointer, nopass :: p1 => sub
5-
procedure(sub), pointer, nopass :: p2 => null()
6-
procedure(sub), pointer, nopass :: p3
7-
end type
8-
procedure(sub), pointer :: p4 => sub
9-
procedure(sub), pointer :: p5 => null()
10-
contains
11-
subroutine sub
12-
end
13-
end
1+
!RUN: rm -rf %t && mkdir -p %t
2+
!RUN: %flang -c -fhermetic-module-files -DWHICH=1 -J%t %s && %flang -c -fhermetic-module-files -DWHICH=2 -J%t %s && %flang_fc1 -fdebug-unparse -J%t %s | FileCheck %s
143

15-
!Expect: m.mod
16-
!module m
17-
!type::dt
18-
!procedure(sub),nopass,pointer::p1=>sub
19-
!procedure(sub),nopass,pointer::p2=>NULL()
20-
!procedure(sub),nopass,pointer::p3
21-
!end type
22-
!intrinsic::null
23-
!procedure(sub),pointer::p4
24-
!procedure(sub),pointer::p5
25-
!contains
26-
!subroutine sub()
27-
!end
28-
!end
4+
#if WHICH == 1
5+
module modfile75a
6+
use iso_c_binding
7+
end
8+
#elif WHICH == 2
9+
module modfile75b
10+
use modfile75a
11+
end
12+
#else
13+
program test
14+
use modfile75b
15+
!CHECK: INTEGER(KIND=4_4) n
16+
integer(c_int) n
17+
end
18+
#endif

0 commit comments

Comments
 (0)