comparison flang/test/Driver/cpp-nocpp-command-line-macro.f90 @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents
children c4bab56944e8
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
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
7
8 !-----------------
9 ! EXPECTED OUTPUT
10 !-----------------
11 ! UNDEFINED:program b
12 ! UNDEFINED-NOT:program a
13
14 ! DEFINED:program a
15 ! DEFINED-NOT:program b
16
17 #ifdef X
18 program X
19 #else
20 program B
21 #endif
22 end