1 ! Check that the clang driver can invoke gcc to compile Fortran when in
2 ! --driver-mode=clang. This is legacy behaviour - see also --driver-mode=flang.
4 ! RUN: %clang --target=x86_64-unknown-linux-gnu -integrated-as -c %s -### 2>&1 \
5 ! RUN: | FileCheck --check-prefix=CHECK-OBJECT %s
8 ! CHECK-OBJECT: "-x" "f95"
9 ! CHECK-OBJECT-NOT: "-cc1as"
11 ! RUN: %clang --target=x86_64-unknown-linux-gnu -integrated-as -S %s -### 2>&1 \
12 ! RUN: | FileCheck --check-prefix=CHECK-ASM %s
15 ! CHECK-ASM: "-x" "f95"
16 ! CHECK-ASM-NOT: "-cc1"
18 ! RUN: %clang -Wall --target=x86_64-unknown-linux-gnu -integrated-as %s -### 2>&1 | FileCheck --check-prefix=CHECK-WARN %s
20 ! CHECK-WARN-NOT: "-Wall"
22 ! CHECK-WARN-NOT: "-Wall"