[PATCH] D96344: [flang][driver] Add options for -fdefault* and -flarge-sizes

Tim Keith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 18 10:55:35 PST 2021


tskeith added inline comments.


================
Comment at: flang/test/Flang-Driver/fdefault.f90:4
+
+! REQUIRES: new-flang-driver
+
----------------
Can't this work with the f18 driver too? That's the best way to ensure they are consistent.


================
Comment at: flang/test/Flang-Driver/fdefault.f90:10
+! RUN: not %flang-new -fsyntax-only -fdefault-double-8 %s  2>&1 | FileCheck %s --check-prefix=DOUBLE
+! RUN: mkdir -p %t/dir-flang-new && %flang-new -fsyntax-only -module-dir %t/dir-flang-new -fdefault-real-8 %s  2>&1
+! RUN: cat %t/dir-flang-new/m.mod | grep 'real_kind=8_4'
----------------
I don't think you need to create a subdirectory. `%t` is a temp directory specific to this test.

So I'm suggesting:
```
! RUN: %flang -fsyntax-only -fdefault-real-8 %s
```


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

https://reviews.llvm.org/D96344



More information about the cfe-commits mailing list