xref: /llvm-project/flang/test/Driver/fintegrated-as.f90 (revision 125abbdc97671d8300cfc1ebcc010d8d4248974b)
1! Tests for the `-f(no-)integrated-as` flag.
2
3! UNSUPPORTED: system-windows
4
5!--------------------------
6! With `-fno-integrated-as`
7!--------------------------
8! Verify that there _is_ a separate line with an assembler invocation
9! RUN: %flang -c -fno-integrated-as %s -### 2>&1 | FileCheck %s
10! CHECK-LABEL: "-fc1"
11! CHECK-SAME: "-o" "[[assembly_file:.*]].s"
12! CHECK-NEXT: "-o" "{{.*}}.o" "[[assembly_file:.*]].s"
13
14!----------------------------------------------------------------
15! Without `-fno-integrated-as` / With `-fintegrated-as` (default)
16!----------------------------------------------------------------
17! Verify that there _is no_ separate line with an assembler invocation
18! RUN: %flang -c -fintegrated-as %s -### 2>&1 | FileCheck %s -check-prefix=DEFAULT
19! RUN: %flang -c %s -### 2>&1 | FileCheck %s -check-prefix=DEFAULT
20! DEFAULT-LABEL: "-fc1"
21! DEFAULT-SAME: "-o" "{{.*}}.o" "{{.*}}fintegrated-as.f90"
22