[flang-commits] [PATCH] D84334: [flang] Version information in flang/f18

Tim Keith via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Aug 5 15:35:46 PDT 2020


tskeith added inline comments.


================
Comment at: flang/test/Preprocessing/compiler_defined_macros.F90:3
+
+! RUN: %f18 %s -E | grep -i -E '"MAJOR" [1-9][0-9]* "MINOR" [0-9]* "PATCH" [0-9]*'
+
----------------
I don't know if you can count on grep being available everywhere. I think FileCheck is better anyway.  E.g. something like this:
```
  !CHECK: flang_major = {{[0-9]+$}}
  integer, parameter :: flang_major = __FLANG_MAJOR__
```


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

https://reviews.llvm.org/D84334



More information about the flang-commits mailing list