[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Driver / cpp-nocpp-command-line-macro.f90
blob3c0aeeeee2396d6d6eebfb900a177c393d2a5486
1 !-----------
2 ! RUN lines
3 !-----------
4 ! RUN: %flang_fc1 -E %s 2>&1 | FileCheck %s --check-prefix=UNDEFINED
5 ! RUN: %flang_fc1 -E -cpp -DX=A %s 2>&1 | FileCheck %s --check-prefix=DEFINED
6 ! RUN: %flang_fc1 -E -nocpp -DX=A %s 2>&1 | FileCheck %s --check-prefix=UNDEFINED
8 !-----------------
9 ! EXPECTED OUTPUT
10 !-----------------
11 ! UNDEFINED:program B
12 ! UNDEFINED-NOT:program A
14 ! DEFINED:program A
15 ! DEFINED-NOT:program B
17 #ifdef X
18 program X
19 #else
20 program B
21 #endif
22 end