| // Tests that we will pick the last `-fmodule-file=<module-name>=<path>` flag |
| // RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-module-interface -o %t/a.pcm |
| // RUN: %clang_cc1 -std=c++20 %t/u.cpp -fmodule-file=a=%t/unexist.pcm \ |
| // RUN: -fmodule-file=a=%t/a.pcm -verify -fsyntax-only |
| // RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-reduced-module-interface -o %t/a.pcm |
| // RUN: %clang_cc1 -std=c++20 %t/u.cpp -fmodule-file=a=%t/unexist.pcm \ |
| // RUN: -fmodule-file=a=%t/a.pcm -verify -fsyntax-only |
| // expected-no-diagnostics |