summaryrefslogtreecommitdiff
path: root/flang/test/Driver/response-file.f90
blob: b2670528d3e9dcbdca78697b1941c591774f6414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
! Test that the driver can process response files.

! RUN: echo "-DTEST" > %basename_t.rsp
! RUN: %flang -E -cpp @%basename_t.rsp %s -o - | FileCheck %s
! RUN: %flang_fc1 -E -cpp @%basename_t.rsp %s -o - | FileCheck %s
! RUN: not %flang %basename_t.rsp %s -o /dev/null
! RUN: not %flang_fc1 %basenamt_t.rsp %s -o /dev/null

! CHECK-LABEL: program test
! CHECK: end program

#ifdef TEST
program test
end program
#else
We should have read the define from the response file.
#endif