xref: /llvm-project/flang/test/Driver/module-suffix.f90 (revision d5d420bb3bcc2eea926fb70fc3e6818c32e1eecc)
1! Tests `-module-suffix` frontend option
2
3!--------------------------
4! RUN lines
5!--------------------------
6! RUN: rm -rf %t && mkdir -p %t/dir-flang/
7! RUN: cd %t && %flang_fc1 -fsyntax-only -module-suffix .f18.mod -module-dir %t/dir-flang %s
8! RUN: ls %t/dir-flang/testmodule.f18.mod && not ls %t/dir-flang/testmodule.mod
9
10module testmodule
11  type::t2
12  end type
13end
14