[PATCH] D85967: [flang] Add preprocessor test for defines passed on the command line

David Truby via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 06:36:09 PDT 2020


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3b338e53e956: [flang] Add preprocessor test for defines passed on the command line (authored by DavidTruby).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85967/new/

https://reviews.llvm.org/D85967

Files:
  flang/test/Preprocessing/defines.F90


Index: flang/test/Preprocessing/defines.F90
===================================================================
--- /dev/null
+++ flang/test/Preprocessing/defines.F90
@@ -0,0 +1,8 @@
+! 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85967.286003.patch
Type: text/x-patch
Size: 348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200817/0815c81f/attachment.bin>


More information about the llvm-commits mailing list