blob: 47c6e7b50c959d4144483f4c081f489434415587 [file] [log] [blame]
Bob Wilson23a55f12014-12-21 07:00:00 +00001// Check that the clang driver can invoke gcc to compile Fortran.
2
3// RUN: %clang -target x86_64-unknown-linux-gnu -integrated-as -c %s -### 2>&1 \
Eric Christopher29a50bc2016-01-06 07:24:45 +00004// RUN: | FileCheck --check-prefix=CHECK-OBJECT %s
5// CHECK-OBJECT: gcc
6// CHECK-OBJECT: "-c"
7// CHECK-OBJECT: "-x" "f95"
8// CHECK-OBJECT-NOT: cc1as
9
10// RUN: %clang -target x86_64-unknown-linux-gnu -integrated-as -S %s -### 2>&1 \
11// RUN: | FileCheck --check-prefix=CHECK-ASM %s
12// CHECK-ASM: gcc
13// CHECK-ASM: "-S"
14// CHECK-ASM: "-x" "f95"
15// CHECK-ASM-NOT: cc1
Eric Christopher3f07d852016-01-07 09:03:42 +000016
17// RUN: %clang -Wall -target x86_64-unknown-linux-gnu -integrated-as %s -o %t -### 2>&1 | FileCheck --check-prefix=CHECK-WARN %s
18// CHECK-WARN: gcc
19// CHECK-WARN-NOT: "-Wall"
20// CHECK-WARN: ld
21// CHECK-WARN-NOT: "-Wall"