[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / fortran.f95
blob275b1886b2fda36133f841b9632632c0a3dcccf0
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
6 ! CHECK-OBJECT: gcc
7 ! CHECK-OBJECT: "-c"
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
13 ! CHECK-ASM: gcc
14 ! 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
19 ! CHECK-WARN: gcc
20 ! CHECK-WARN-NOT: "-Wall"
21 ! CHECK-WARN: ld
22 ! CHECK-WARN-NOT: "-Wall"