aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/fortran.f95
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/fortran.f95')
-rw-r--r--test/Driver/fortran.f959
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Driver/fortran.f95 b/test/Driver/fortran.f95
new file mode 100644
index 000000000000..9334cbec442a
--- /dev/null
+++ b/test/Driver/fortran.f95
@@ -0,0 +1,9 @@
+// Check that the clang driver can invoke gcc to compile Fortran.
+
+// RUN: %clang -target x86_64-unknown-linux-gnu -integrated-as -c %s -### 2>&1 \
+// RUN: | FileCheck %s
+// CHECK: gcc
+// CHECK: "-S"
+// CHECK: "-x" "f95"
+// CHECK: clang
+// CHECK: "-cc1as"