Skip to content

Commit 1caf4f9

Browse files
committed
[flang] Restore accidentally deleted test. NFC.
Somehow this file got deleted in 5d43f61, while resolving a merge conflict. I have no idea how, and my abundant terminal scrollback for this branch offers no explanation whatsoever. It's quite disturbing. rdar://166776360
1 parent 7e36b83 commit 1caf4f9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

flang/test/Semantics/modfile75.F90

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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
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)