File tree Expand file tree Collapse file tree 1 file changed +27
-17
lines changed
Expand file tree Collapse file tree 1 file changed +27
-17
lines changed Original file line number Diff line number Diff line change 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
1113end
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
You can’t perform that action at this time.
0 commit comments