[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Driver / phases.f90
blobeeaed03dc6f1822adc56d7c8dc84d04efb6a94f5
1 ! This test verifies the phase control in Flang compiler driver.
3 !-----------
4 ! RUN LINES
5 !-----------
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 !-----------------------
11 ! EXPECTED OUTPUT
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