[LLVM] Fix Maintainers.md formatting (NFC)
[llvm-project.git] / flang / test / Driver / save-temps-use-module.f90
blob2f184d15898571de0cf534603924f5750f73d28a
1 ! Tests that `--save-temps` works properly when a module from a non standard dir
2 ! is included with `-I/...`.
4 ! RUN: rm -rf %t && split-file %s %t
5 ! RUN: mkdir %t/mod_inc_dir
6 ! RUN: mv %t/somemodule.mod %t/mod_inc_dir
7 ! RUN: %flang -S -emit-llvm --save-temps=obj -I%t/mod_inc_dir -fno-integrated-as \
8 ! RUN: %t/ModuleUser.f90 -o %t/ModuleUser
9 ! RUN: ls %t | FileCheck %s
11 ! Verify that the temp file(s) were written to disk.
12 ! CHECK: ModuleUser.i
14 !--- somemodule.mod
15 !mod$ v1 sum:e9e8fd2bd49e8daa
16 module SomeModule
18 end module SomeModule
19 !--- ModuleUser.f90
21 module User
22 use SomeModule
23 end module User
25 program dummy
26 end program