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