blob: 63945c1aab69855b365f7bb94a29e3454d885119 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
!-----------
! RUN lines
!-----------
! RUN: %flang_fc1 -E %s 2>&1 | FileCheck %s --check-prefix=UNDEFINED
! RUN: %flang_fc1 -E -cpp -DX=A %s 2>&1 | FileCheck %s --check-prefix=DEFINED
! RUN: %flang_fc1 -E -nocpp -DX=A %s 2>&1 | FileCheck %s --check-prefix=UNDEFINED
! UNDEFINED:program B
! UNDEFINED-NOT:program A
! DEFINED:program A
! DEFINED-NOT:program B
#ifdef X
program X
#else
program B
#endif
end
|