[clang] Add tests for driver to propagate module map flags even without -fmod… (PR #75827)

Walter Lee via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 20 05:47:48 PST 2023


================
@@ -57,6 +57,14 @@
 // CHECK-MODULE-MAP-FILES: "-fmodule-map-file=foo.map"
 // CHECK-MODULE-MAP-FILES: "-fmodule-map-file=bar.map"
 
+// RUN: %clang -fno-modules -fmodule-name=foo -c -### %s 2>&1 | FileCheck -check-prefix=CHECK-PROPAGATE-MODULE-NAME %s
----------------
googlewalt wrote:

I changed the tests to directly test for layering check, since that's what I care about.  I don't see analogous tests for c/c++.  Should I add them?

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


More information about the cfe-commits mailing list