diff options
Diffstat (limited to 'flang/test/Driver/response-file.f90')
-rw-r--r-- | flang/test/Driver/response-file.f90 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/flang/test/Driver/response-file.f90 b/flang/test/Driver/response-file.f90 new file mode 100644 index 000000000000..b2670528d3e9 --- /dev/null +++ b/flang/test/Driver/response-file.f90 @@ -0,0 +1,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 |