[clang] [flang] [llvm] [flang] Diagnose and optionally repair missing MODULE procedure prefixes (PR #220783)

Eugene Epshteyn via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 07:28:11 PDT 2026


================
@@ -0,0 +1,46 @@
+! REQUIRES: native
----------------
eugeneepshteyn wrote:

This test never runs. flang-rt's lit config sets `target_triple` but not `host_triple`, so lit never provides `native`, and the test reports:

```console
UNSUPPORTED: flang-rt :: Driver/implicit-module-prefix.f90
Test requires the following unavailable features: native
```

It's the only `REQUIRES: native` test in this directory; the other execution tests here only carry `UNSUPPORTED: offload-cuda`. With this line removed, the test passes for me:

```suggestion
```

Since the test moved out of `flang/test/Driver`, nothing covers the driver forwarding of `-f[no-]implicit-module-prefix` on a plain flang build. A `%flang -fsyntax-only -Wimplicit-module-prefix` test there would cover that without needing the runtime: one warning for `-fimplicit-module-prefix`, none for `-fimplicit-module-prefix -fno-implicit-module-prefix`, and one for the reverse order.


https://github.com/llvm/llvm-project/pull/220783


More information about the llvm-commits mailing list