[flang-commits] [flang] 45da495 - [flang][driver] Merge test/Driver and test/Flang-Driver directories
Andrzej Warzynski via flang-commits
flang-commits at lists.llvm.org
Wed Mar 10 03:40:16 PST 2021
Author: Andrzej Warzynski
Date: 2021-03-10T11:38:13Z
New Revision: 45da495f73d83b4c1400bf5896765d7883bd67e2
URL: https://github.com/llvm/llvm-project/commit/45da495f73d83b4c1400bf5896765d7883bd67e2
DIFF: https://github.com/llvm/llvm-project/commit/45da495f73d83b4c1400bf5896765d7883bd67e2.diff
LOG: [flang][driver] Merge test/Driver and test/Flang-Driver directories
Until now we've been maintaining 2 test directories for Flang's drivers:
* test/Driver for `f18` (the current driver)
* test/Flang-Driver for `flang-new` (the new driver)
As we have started sharing tests between the drivers, this separation is
no longer required. This patch merges the two test directories. As
suggested in the review, moving forward we'll avoid having tests
specifically for the old driver.
A few notable changes:
* Driver/version-test.f90 and Driver/no-files.f90 are deleted. The
versions for the new driver are more robust, but tricky to share.
* Driver/write-module.f90 is deleted in favour of
Flang-Driver/write-module.f90 (see https://reviews.llvm.org/D97197
for more context)
Differential Revision: https://reviews.llvm.org/D98257
Added:
flang/test/Driver/Inputs/basic-header-one.h
flang/test/Driver/Inputs/basic-header-two.h
flang/test/Driver/Inputs/basictestmoduleone.mod
flang/test/Driver/Inputs/fixed-form-test.f
flang/test/Driver/Inputs/fixed-line-length-test.f
flang/test/Driver/Inputs/free-form-test.f90
flang/test/Driver/Inputs/header-dir/basic-header-one.h
flang/test/Driver/Inputs/header-dir/basic-header-two.h
flang/test/Driver/Inputs/module-dir/basictestmoduleone.mod
flang/test/Driver/Inputs/module-dir/basictestmoduletwo.mod
flang/test/Driver/code-gen.f90
flang/test/Driver/debug-measure-parse-tree.f90
flang/test/Driver/debug-provenance.f90
flang/test/Driver/driver-error-cc1.c
flang/test/Driver/driver-error-cc1.cpp
flang/test/Driver/driver-help-hidden.f90
flang/test/Driver/driver-help.f90
flang/test/Driver/driver-version.f90
flang/test/Driver/escaped-backslash.f90
flang/test/Driver/fdefault.f90
flang/test/Driver/fixed-free-detection.f90
flang/test/Driver/fixed-free-flag.f90
flang/test/Driver/fixed-line-length.f90
flang/test/Driver/flarge_sizes.f90
flang/test/Driver/frontend-forwarding.f90
flang/test/Driver/help-f18.f90
flang/test/Driver/implicit-none.f90
flang/test/Driver/include-header.f90
flang/test/Driver/input-from-stdin.f90
flang/test/Driver/macro-def-undef.f90
flang/test/Driver/macro-multiline.f90
flang/test/Driver/missing-input.f90
flang/test/Driver/parse-error.f95
flang/test/Driver/phases.f90
flang/test/Driver/predefined-macros-compiler-version.f90
flang/test/Driver/scanning-error.f95
flang/test/Driver/syntax-only.f90
flang/test/Driver/use-module-error.f90
flang/test/Driver/use-module.f90
Modified:
flang/test/Driver/write-module.f90
Removed:
flang/test/Driver/help.f90
flang/test/Driver/no-files.f90
flang/test/Driver/version-test.f90
flang/test/Flang-Driver/Inputs/basic-header-one.h
flang/test/Flang-Driver/Inputs/basic-header-two.h
flang/test/Flang-Driver/Inputs/basictestmoduleone.mod
flang/test/Flang-Driver/Inputs/fixed-form-test.f
flang/test/Flang-Driver/Inputs/fixed-line-length-test.f
flang/test/Flang-Driver/Inputs/free-form-test.f90
flang/test/Flang-Driver/Inputs/header-dir/basic-header-one.h
flang/test/Flang-Driver/Inputs/header-dir/basic-header-two.h
flang/test/Flang-Driver/Inputs/module-dir/basictestmoduleone.mod
flang/test/Flang-Driver/Inputs/module-dir/basictestmoduletwo.mod
flang/test/Flang-Driver/code-gen.f90
flang/test/Flang-Driver/debug-measure-parse-tree.f90
flang/test/Flang-Driver/debug-provenance.f90
flang/test/Flang-Driver/driver-error-cc1.c
flang/test/Flang-Driver/driver-error-cc1.cpp
flang/test/Flang-Driver/driver-help-hidden.f90
flang/test/Flang-Driver/driver-help.f90
flang/test/Flang-Driver/driver-version.f90
flang/test/Flang-Driver/escaped-backslash.f90
flang/test/Flang-Driver/fdefault.f90
flang/test/Flang-Driver/fixed-free-detection.f90
flang/test/Flang-Driver/fixed-free-flag.f90
flang/test/Flang-Driver/fixed-line-length.f90
flang/test/Flang-Driver/flarge_sizes.f90
flang/test/Flang-Driver/frontend-forwarding.f90
flang/test/Flang-Driver/implicit-none.f90
flang/test/Flang-Driver/include-header.f90
flang/test/Flang-Driver/input-from-stdin.f90
flang/test/Flang-Driver/macro-def-undef.f90
flang/test/Flang-Driver/macro-multiline.f90
flang/test/Flang-Driver/missing-input.f90
flang/test/Flang-Driver/parse-error.f95
flang/test/Flang-Driver/phases.f90
flang/test/Flang-Driver/predefined-macros-compiler-version.f90
flang/test/Flang-Driver/scanning-error.f95
flang/test/Flang-Driver/syntax-only.f90
flang/test/Flang-Driver/use-module-error.f90
flang/test/Flang-Driver/use-module.f90
flang/test/Flang-Driver/write-module.f90
################################################################################
diff --git a/flang/test/Flang-Driver/Inputs/basic-header-one.h b/flang/test/Driver/Inputs/basic-header-one.h
similarity index 100%
rename from flang/test/Flang-Driver/Inputs/basic-header-one.h
rename to flang/test/Driver/Inputs/basic-header-one.h
diff --git a/flang/test/Flang-Driver/Inputs/basic-header-two.h b/flang/test/Driver/Inputs/basic-header-two.h
similarity index 100%
rename from flang/test/Flang-Driver/Inputs/basic-header-two.h
rename to flang/test/Driver/Inputs/basic-header-two.h
diff --git a/flang/test/Flang-Driver/Inputs/basictestmoduleone.mod b/flang/test/Driver/Inputs/basictestmoduleone.mod
similarity index 100%
rename from flang/test/Flang-Driver/Inputs/basictestmoduleone.mod
rename to flang/test/Driver/Inputs/basictestmoduleone.mod
diff --git a/flang/test/Flang-Driver/Inputs/fixed-form-test.f b/flang/test/Driver/Inputs/fixed-form-test.f
similarity index 100%
rename from flang/test/Flang-Driver/Inputs/fixed-form-test.f
rename to flang/test/Driver/Inputs/fixed-form-test.f
diff --git a/flang/test/Flang-Driver/Inputs/fixed-line-length-test.f b/flang/test/Driver/Inputs/fixed-line-length-test.f
similarity index 100%
rename from flang/test/Flang-Driver/Inputs/fixed-line-length-test.f
rename to flang/test/Driver/Inputs/fixed-line-length-test.f
diff --git a/flang/test/Flang-Driver/Inputs/free-form-test.f90 b/flang/test/Driver/Inputs/free-form-test.f90
similarity index 100%
rename from flang/test/Flang-Driver/Inputs/free-form-test.f90
rename to flang/test/Driver/Inputs/free-form-test.f90
diff --git a/flang/test/Flang-Driver/Inputs/header-dir/basic-header-one.h b/flang/test/Driver/Inputs/header-dir/basic-header-one.h
similarity index 100%
rename from flang/test/Flang-Driver/Inputs/header-dir/basic-header-one.h
rename to flang/test/Driver/Inputs/header-dir/basic-header-one.h
diff --git a/flang/test/Flang-Driver/Inputs/header-dir/basic-header-two.h b/flang/test/Driver/Inputs/header-dir/basic-header-two.h
similarity index 100%
rename from flang/test/Flang-Driver/Inputs/header-dir/basic-header-two.h
rename to flang/test/Driver/Inputs/header-dir/basic-header-two.h
diff --git a/flang/test/Flang-Driver/Inputs/module-dir/basictestmoduleone.mod b/flang/test/Driver/Inputs/module-dir/basictestmoduleone.mod
similarity index 100%
rename from flang/test/Flang-Driver/Inputs/module-dir/basictestmoduleone.mod
rename to flang/test/Driver/Inputs/module-dir/basictestmoduleone.mod
diff --git a/flang/test/Flang-Driver/Inputs/module-dir/basictestmoduletwo.mod b/flang/test/Driver/Inputs/module-dir/basictestmoduletwo.mod
similarity index 100%
rename from flang/test/Flang-Driver/Inputs/module-dir/basictestmoduletwo.mod
rename to flang/test/Driver/Inputs/module-dir/basictestmoduletwo.mod
diff --git a/flang/test/Flang-Driver/code-gen.f90 b/flang/test/Driver/code-gen.f90
similarity index 100%
rename from flang/test/Flang-Driver/code-gen.f90
rename to flang/test/Driver/code-gen.f90
diff --git a/flang/test/Flang-Driver/debug-measure-parse-tree.f90 b/flang/test/Driver/debug-measure-parse-tree.f90
similarity index 100%
rename from flang/test/Flang-Driver/debug-measure-parse-tree.f90
rename to flang/test/Driver/debug-measure-parse-tree.f90
diff --git a/flang/test/Flang-Driver/debug-provenance.f90 b/flang/test/Driver/debug-provenance.f90
similarity index 100%
rename from flang/test/Flang-Driver/debug-provenance.f90
rename to flang/test/Driver/debug-provenance.f90
diff --git a/flang/test/Flang-Driver/driver-error-cc1.c b/flang/test/Driver/driver-error-cc1.c
similarity index 100%
rename from flang/test/Flang-Driver/driver-error-cc1.c
rename to flang/test/Driver/driver-error-cc1.c
diff --git a/flang/test/Flang-Driver/driver-error-cc1.cpp b/flang/test/Driver/driver-error-cc1.cpp
similarity index 100%
rename from flang/test/Flang-Driver/driver-error-cc1.cpp
rename to flang/test/Driver/driver-error-cc1.cpp
diff --git a/flang/test/Flang-Driver/driver-help-hidden.f90 b/flang/test/Driver/driver-help-hidden.f90
similarity index 100%
rename from flang/test/Flang-Driver/driver-help-hidden.f90
rename to flang/test/Driver/driver-help-hidden.f90
diff --git a/flang/test/Flang-Driver/driver-help.f90 b/flang/test/Driver/driver-help.f90
similarity index 100%
rename from flang/test/Flang-Driver/driver-help.f90
rename to flang/test/Driver/driver-help.f90
diff --git a/flang/test/Flang-Driver/driver-version.f90 b/flang/test/Driver/driver-version.f90
similarity index 69%
rename from flang/test/Flang-Driver/driver-version.f90
rename to flang/test/Driver/driver-version.f90
index 199770bd9e50..a504635ffeb7 100644
--- a/flang/test/Flang-Driver/driver-version.f90
+++ b/flang/test/Driver/driver-version.f90
@@ -3,9 +3,9 @@
! REQUIRES: new-flang-driver
-! CHECK:flang-new version
-! CHECK-NEXT:Target:
-! CHECK-NEXT:Thread model:
-! CHECK-NEXT:InstalledDir:
+! CHECK: flang-new version
+! CHECK-NEXT: Target:
+! CHECK-NEXT: Thread model:
+! CHECK-NEXT: InstalledDir:
! ERROR: flang-new: error: unsupported option '--versions'; did you mean '--version'?
diff --git a/flang/test/Flang-Driver/escaped-backslash.f90 b/flang/test/Driver/escaped-backslash.f90
similarity index 100%
rename from flang/test/Flang-Driver/escaped-backslash.f90
rename to flang/test/Driver/escaped-backslash.f90
diff --git a/flang/test/Flang-Driver/fdefault.f90 b/flang/test/Driver/fdefault.f90
similarity index 100%
rename from flang/test/Flang-Driver/fdefault.f90
rename to flang/test/Driver/fdefault.f90
diff --git a/flang/test/Flang-Driver/fixed-free-detection.f90 b/flang/test/Driver/fixed-free-detection.f90
similarity index 100%
rename from flang/test/Flang-Driver/fixed-free-detection.f90
rename to flang/test/Driver/fixed-free-detection.f90
diff --git a/flang/test/Flang-Driver/fixed-free-flag.f90 b/flang/test/Driver/fixed-free-flag.f90
similarity index 100%
rename from flang/test/Flang-Driver/fixed-free-flag.f90
rename to flang/test/Driver/fixed-free-flag.f90
diff --git a/flang/test/Flang-Driver/fixed-line-length.f90 b/flang/test/Driver/fixed-line-length.f90
similarity index 100%
rename from flang/test/Flang-Driver/fixed-line-length.f90
rename to flang/test/Driver/fixed-line-length.f90
diff --git a/flang/test/Flang-Driver/flarge_sizes.f90 b/flang/test/Driver/flarge_sizes.f90
similarity index 100%
rename from flang/test/Flang-Driver/flarge_sizes.f90
rename to flang/test/Driver/flarge_sizes.f90
diff --git a/flang/test/Flang-Driver/frontend-forwarding.f90 b/flang/test/Driver/frontend-forwarding.f90
similarity index 100%
rename from flang/test/Flang-Driver/frontend-forwarding.f90
rename to flang/test/Driver/frontend-forwarding.f90
diff --git a/flang/test/Driver/help.f90 b/flang/test/Driver/help-f18.f90
similarity index 100%
rename from flang/test/Driver/help.f90
rename to flang/test/Driver/help-f18.f90
diff --git a/flang/test/Flang-Driver/implicit-none.f90 b/flang/test/Driver/implicit-none.f90
similarity index 100%
rename from flang/test/Flang-Driver/implicit-none.f90
rename to flang/test/Driver/implicit-none.f90
diff --git a/flang/test/Flang-Driver/include-header.f90 b/flang/test/Driver/include-header.f90
similarity index 100%
rename from flang/test/Flang-Driver/include-header.f90
rename to flang/test/Driver/include-header.f90
diff --git a/flang/test/Flang-Driver/input-from-stdin.f90 b/flang/test/Driver/input-from-stdin.f90
similarity index 56%
rename from flang/test/Flang-Driver/input-from-stdin.f90
rename to flang/test/Driver/input-from-stdin.f90
index d95218abe278..606cc41520fe 100644
--- a/flang/test/Flang-Driver/input-from-stdin.f90
+++ b/flang/test/Driver/input-from-stdin.f90
@@ -3,27 +3,27 @@
! REQUIRES: new-flang-driver
!--------------------------
-! FLANG DRIVER (flang-new)
+! FLANG DRIVER (flang)
!--------------------------
! Input type is implicit
-! RUN: cat %s | flang-new -E - | FileCheck %s --check-prefix=PP-NOT-DEFINED
-! RUN: cat %s | flang-new -DNEW -E - | FileCheck %s --check-prefix=PP-DEFINED
+! RUN: cat %s | %flang -E - | FileCheck %s --check-prefix=PP-NOT-DEFINED
+! RUN: cat %s | %flang -DNEW -E - | FileCheck %s --check-prefix=PP-DEFINED
! Input type is explicit
-! RUN: cat %s | flang-new -E -x f95-cpp-input - | FileCheck %s --check-prefix=PP-NOT-DEFINED
-! RUN: cat %s | flang-new -DNEW -E -x f95-cpp-input - | FileCheck %s --check-prefix=PP-DEFINED
+! RUN: cat %s | %flang -E -x f95-cpp-input - | FileCheck %s --check-prefix=PP-NOT-DEFINED
+! RUN: cat %s | %flang -DNEW -E -x f95-cpp-input - | FileCheck %s --check-prefix=PP-DEFINED
!---------------------------------------
-! FLANG FRONTEND DRIVER (flang-new -fc1)
+! FLANG FRONTEND DRIVER (flang -fc1)
!---------------------------------------
! Test `-E`: for the corresponding frontend actions the driver relies on the prescanner API to handle file I/O
-! RUN: cat %s | flang-new -fc1 -E | FileCheck %s --check-prefix=PP-NOT-DEFINED
-! RUN: cat %s | flang-new -fc1 -DNEW -E | FileCheck %s --check-prefix=PP-DEFINED
+! RUN: cat %s | %flang -fc1 -E | FileCheck %s --check-prefix=PP-NOT-DEFINED
+! RUN: cat %s | %flang -fc1 -DNEW -E | FileCheck %s --check-prefix=PP-DEFINED
! Test `-test-io`: for the corresponding frontend action (`InputOutputTestAction`) the driver handles the file I/O on its own
! the corresponding action (`PrintPreprocessedAction`)
-! RUN: cat %s | flang-new -fc1 -test-io | FileCheck %s --check-prefix=IO --match-full-lines
-! RUN: cat %s | flang-new -fc1 -DNEW -test-io | FileCheck %s --check-prefix=IO --match-full-lines
+! RUN: cat %s | %flang -fc1 -test-io | FileCheck %s --check-prefix=IO --match-full-lines
+! RUN: cat %s | %flang -fc1 -DNEW -test-io | FileCheck %s --check-prefix=IO --match-full-lines
!-------------------------
! EXPECTED OUTPUT for `-E`
diff --git a/flang/test/Flang-Driver/macro-def-undef.f90 b/flang/test/Driver/macro-def-undef.f90
similarity index 100%
rename from flang/test/Flang-Driver/macro-def-undef.f90
rename to flang/test/Driver/macro-def-undef.f90
diff --git a/flang/test/Flang-Driver/macro-multiline.f90 b/flang/test/Driver/macro-multiline.f90
similarity index 100%
rename from flang/test/Flang-Driver/macro-multiline.f90
rename to flang/test/Driver/macro-multiline.f90
diff --git a/flang/test/Flang-Driver/missing-input.f90 b/flang/test/Driver/missing-input.f90
similarity index 100%
rename from flang/test/Flang-Driver/missing-input.f90
rename to flang/test/Driver/missing-input.f90
diff --git a/flang/test/Driver/no-files.f90 b/flang/test/Driver/no-files.f90
deleted file mode 100644
index 718985dce4ca..000000000000
--- a/flang/test/Driver/no-files.f90
+++ /dev/null
@@ -1,10 +0,0 @@
-! RUN: %f18 < %S/Inputs/hello.f90 | FileCheck %s
-
-
-! CHECK: Enter Fortran source
-! CHECK: Use EOF character (^D) to end file
-
-! CHECK: Parse tree comprises {{.*}} objects and occupies {{.*}} total bytes
-! CHECK: PROGRAM hello
-! CHECK: WRITE (*, *) "hello world"
-! CHECK: END PROGRAM hello
diff --git a/flang/test/Flang-Driver/parse-error.f95 b/flang/test/Driver/parse-error.f95
similarity index 100%
rename from flang/test/Flang-Driver/parse-error.f95
rename to flang/test/Driver/parse-error.f95
diff --git a/flang/test/Flang-Driver/phases.f90 b/flang/test/Driver/phases.f90
similarity index 100%
rename from flang/test/Flang-Driver/phases.f90
rename to flang/test/Driver/phases.f90
diff --git a/flang/test/Flang-Driver/predefined-macros-compiler-version.f90 b/flang/test/Driver/predefined-macros-compiler-version.f90
similarity index 100%
rename from flang/test/Flang-Driver/predefined-macros-compiler-version.f90
rename to flang/test/Driver/predefined-macros-compiler-version.f90
diff --git a/flang/test/Flang-Driver/scanning-error.f95 b/flang/test/Driver/scanning-error.f95
similarity index 100%
rename from flang/test/Flang-Driver/scanning-error.f95
rename to flang/test/Driver/scanning-error.f95
diff --git a/flang/test/Flang-Driver/syntax-only.f90 b/flang/test/Driver/syntax-only.f90
similarity index 100%
rename from flang/test/Flang-Driver/syntax-only.f90
rename to flang/test/Driver/syntax-only.f90
diff --git a/flang/test/Flang-Driver/use-module-error.f90 b/flang/test/Driver/use-module-error.f90
similarity index 100%
rename from flang/test/Flang-Driver/use-module-error.f90
rename to flang/test/Driver/use-module-error.f90
diff --git a/flang/test/Flang-Driver/use-module.f90 b/flang/test/Driver/use-module.f90
similarity index 100%
rename from flang/test/Flang-Driver/use-module.f90
rename to flang/test/Driver/use-module.f90
diff --git a/flang/test/Driver/version-test.f90 b/flang/test/Driver/version-test.f90
deleted file mode 100644
index 79be3617cf4b..000000000000
--- a/flang/test/Driver/version-test.f90
+++ /dev/null
@@ -1,10 +0,0 @@
-! Check that lit configuration works by checking the compiler version
-
-! VERSION-NOT:{{![[:space:]]}}
-! VERSION:{{[[:space:]]}}
-! VERSION-SAME:f18 compiler (under development), version {{[1-9][0-9]*.[0-9]*.[0-9]*}}
-! VERSION-EMPTY:
-
-! RUN: %f18 -V 2>&1 | FileCheck -check-prefix=VERSION %s
-! RUN: %f18 -v 2>&1 | FileCheck -check-prefix=VERSION %s
-! RUN: %f18 --version 2>&1 | FileCheck -check-prefix=VERSION %s
diff --git a/flang/test/Driver/write-module.f90 b/flang/test/Driver/write-module.f90
index 47c37d6c46fd..baa480e055b9 100644
--- a/flang/test/Driver/write-module.f90
+++ b/flang/test/Driver/write-module.f90
@@ -1,17 +1,28 @@
-! RUN: rm -rf %t && mkdir -p %t/mod-dir && cd %t && %f18 -fparse-only %s
-! RUN: ls %t/testmodule.mod && not ls %t/mod-dir/testmodule.mod
+! Checks that the module file:
+! * is _saved_
+! * is saved in the _directory specified by the user_
+! We use `-fsyntax-only` as it stops after the semantic checks (the module file is generated when sema checks are run)
-! RUN: rm -rf %t && mkdir -p %t/mod-dir && cd %t && %f18 -fparse-only -module mod-dir %s
-! RUN: ls %t/mod-dir/testmodule.mod && not ls %t/testmodule.mod
+!--------------------------
+! -module-dir
+!--------------------------
+! RUN: rm -rf %t && mkdir -p %t/dir-flang
+! RUN: cd %t && %flang -fsyntax-only -module-dir %t/dir-flang %s
+! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
-! RUN: rm -rf %t && mkdir -p %t/mod-dir && cd %t && %f18 -fparse-only -module-dir mod-dir %s
-! RUN: ls %t/mod-dir/testmodule.mod && not ls %t/testmodule.mod
+!---------------------------
+! -J <dir> (i.e. with space)
+!---------------------------
+! RUN: rm -rf %t && mkdir -p %t/dir-flang
+! RUN: cd %t && %flang -fsyntax-only -J %t/dir-flang %s
+! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
-! RUN: rm -rf %t && mkdir -p %t/mod-dir && cd %t && %f18 -fparse-only -J mod-dir %s
-! RUN: ls %t/mod-dir/testmodule.mod && not ls %t/testmodule.mod
-
-! RUN: rm -rf %t && mkdir -p %t/mod-dir && cd %t && %f18 -fparse-only -Jmod-dir %s
-! RUN: ls %t/mod-dir/testmodule.mod && not ls %t/testmodule.mod
+!------------------------------
+! -J<dir> (i.e. without space)
+!------------------------------
+! RUN: rm -rf %t && mkdir -p %t/dir-flang
+! RUN: cd %t && %flang -fsyntax-only -J%t/dir-flang %s
+! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
module testmodule
type::t2
diff --git a/flang/test/Flang-Driver/write-module.f90 b/flang/test/Flang-Driver/write-module.f90
deleted file mode 100644
index 5065be9a9bc0..000000000000
--- a/flang/test/Flang-Driver/write-module.f90
+++ /dev/null
@@ -1,16 +0,0 @@
-! RUN: rm -rf %t && mkdir -p %t/dir-flang
-! RUN: cd %t && %flang -fsyntax-only -module-dir %t/dir-flang %s
-! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
-
-! RUN: rm -rf %t && mkdir -p %t/dir-flang
-! RUN: cd %t && %flang -fsyntax-only -J %t/dir-flang %s
-! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
-
-! RUN: rm -rf %t && mkdir -p %t/dir-flang
-! RUN: cd %t && %flang -fsyntax-only -J%t/dir-flang %s
-! RUN: ls %t/dir-flang/testmodule.mod && not ls %t/testmodule.mod
-
-module testmodule
- type::t2
- end type
-end
More information about the flang-commits
mailing list