• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// 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 \
4// 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
16
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"
22