[flang-commits] [clang] [flang] [Flang] Fix -frelaxed-c-loc-checks being ignored when using the driver (PR #200733)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Mon Jun 1 07:16:41 PDT 2026
================
@@ -1,4 +1,5 @@
! RUN: %python %S/test_errors.py %s %flang_fc1 -frelaxed-c-loc-checks
+! RUN: %python %S/test_errors.py %s %flang -frelaxed-c-loc-checks
----------------
tarunprabhu wrote:
In general, we should not invoke the driver in the semantics tests because there is a lot of work that the driver does that is unnecessary.
If the issue was that the driver was not passing the option along to `fc1`, it is better to add a test to `flang/test/Driver`. For instance, something like this:
```
RUN: %flang -### -frelaxed-c-loc-checks %s 2>&1 | FileCheck %s
CHECK: "-fc1"
CHECK-SAME: "-frelaxed-c-loc-checks"
```
https://github.com/llvm/llvm-project/pull/200733
More information about the flang-commits
mailing list