brintos

brintos / llvm-project-archived public Read only

0
0
Text · 635 B · 2f184d1 Raw
27 lines · plain
1! Tests that `--save-temps` works properly when a module from a non standard dir2! is included with `-I/...`.3 4! RUN: rm -rf %t && split-file %s %t5! RUN: mkdir %t/mod_inc_dir6! RUN: mv %t/somemodule.mod %t/mod_inc_dir7! RUN: %flang -S -emit-llvm --save-temps=obj -I%t/mod_inc_dir -fno-integrated-as \8! RUN:   %t/ModuleUser.f90 -o %t/ModuleUser9! RUN: ls %t | FileCheck %s10 11! Verify that the temp file(s) were written to disk.12! CHECK: ModuleUser.i13 14!--- somemodule.mod15!mod$ v1 sum:e9e8fd2bd49e8daa16module SomeModule17 18end module SomeModule19!--- ModuleUser.f9020 21module User22  use SomeModule23end module User24 25program dummy26end program27