David Truby 3b338e53e9 [flang] Add preprocessor test for defines passed on the command line
This adds a test for D85862 to ensure that preprocessor definitions
passed on command lines don't regress in future.

Reviewed By: tskeith

Differential Revision: https://reviews.llvm.org/D85967
2020-08-17 14:35:46 +01:00

9 lines
157 B
Fortran

! RUN: %f18 -E -DFOO=1 -DBAR=2 %s | FileCheck %s
! CHECK: integer :: a = 1
integer :: a = FOO
! CHECK: integer :: b = 2
integer :: b = BAR
end program