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. 3 4! RUN: %clang -target x86_64-unknown-linux-gnu -integrated-as -c %s -### 2>&1 \ 5! RUN: | FileCheck --check-prefix=CHECK-OBJECT %s 6! CHECK-OBJECT: gcc 7! CHECK-OBJECT: "-c" 8! CHECK-OBJECT: "-x" "f95" 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 %s 13! CHECK-ASM: gcc 14! CHECK-ASM: "-S" 15! CHECK-ASM: "-x" "f95" 16! CHECK-ASM-NOT: "-cc1" 17 18! RUN: %clang -Wall -target x86_64-unknown-linux-gnu -integrated-as %s -o %t -### 2>&1 | FileCheck --check-prefix=CHECK-WARN %s 19! CHECK-WARN: gcc 20! CHECK-WARN-NOT: "-Wall" 21! CHECK-WARN: ld 22! CHECK-WARN-NOT: "-Wall" 23