23 lines · plain
1! Check that the clang driver can invoke gcc to compile Fortran when in2! --driver-mode=clang. This is legacy behaviour - see also --driver-mode=flang.3 4! RUN: %clang --target=x86_64-unknown-linux-gnu -integrated-as -c %s -### 2>&1 \5! RUN: | FileCheck --check-prefix=CHECK-OBJECT %s6! CHECK-OBJECT: gcc7! CHECK-OBJECT: "-c"8! CHECK-OBJECT: "-x" "f95-cpp-input"9! CHECK-OBJECT-NOT: "-cc1as"10 11! RUN: %clang --target=x86_64-unknown-linux-gnu -integrated-as -S %s -### 2>&1 \12! RUN: | FileCheck --check-prefix=CHECK-ASM %s13! CHECK-ASM: gcc14! CHECK-ASM: "-S"15! CHECK-ASM: "-x" "f95-cpp-input"16! CHECK-ASM-NOT: "-cc1"17 18! RUN: %clang -Wall --target=x86_64-unknown-linux-gnu -integrated-as %s -### 2>&1 | FileCheck --check-prefix=CHECK-WARN %s19! CHECK-WARN: gcc20! CHECK-WARN-NOT: "-Wall"21! CHECK-WARN: ld22! CHECK-WARN-NOT: "-Wall"23