Skip to content

Commit 30ecdeb

Browse files
committed
undo rebase
1 parent eeee10c commit 30ecdeb

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

flang/test/Semantics/modfile75.f90

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
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
3-
4-
#if WHICH == 1
5-
module modfile75a
6-
use iso_c_binding
7-
end
8-
#elif WHICH == 2
9-
module modfile75b
10-
use modfile75a
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
1113
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
14+
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

0 commit comments

Comments
 (0)