1 ! This test verifies the phase control in Flang compiler driver.
6 ! RUN: %flang -E -ccc-print-phases %s 2>&1 | FileCheck %s --check-prefix=PP
7 ! RUN: %flang -fsyntax-only -ccc-print-phases %s 2>&1 | FileCheck %s --check-prefix=COMPILE
8 ! RUN: %flang -c -ccc-print-phases %s 2>&1 | FileCheck %s --check-prefix=EMIT_OBJ
10 !-----------------------
12 !-----------------------
13 ! PP: +- 0: input, "{{.*}}phases.f90", f95-cpp-input
14 ! PP-NEXT: 1: preprocessor, {0}, f95
16 ! COMPILE: +- 0: input, "{{.*}}phases.f90", f95-cpp-input
17 ! COMPILE-NEXT: 1: preprocessor, {0}, f95
18 ! COMPILE-NEXT: 2: compiler, {1}, none
20 ! EMIT_OBJ: +- 0: input, "{{.*}}phases.f90", f95-cpp-input
21 ! EMIT_OBJ-NEXT: 1: preprocessor, {0}, f95
22 ! EMIT_OBJ-NEXT: 2: compiler, {1}, ir
23 ! EMIT_OBJ-NEXT: +- 3: backend, {2}, assembler
24 ! EMIT_OBJ-NEXT: 4: assembler, {3}, object