Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Modules / Reachability-using.cpp
blob642b97dd8432c3bfd1aca096fc7169976f2b0127
1 // RUN: rm -rf %t
2 // RUN: mkdir -p %t
3 // RUN: split-file %s %t
4 //
5 // RUN: %clang_cc1 -std=c++20 %t/mod.cppm -emit-module-interface -o %t/mod.pcm
6 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -fsyntax-only -verify
7 //
8 //--- mod.cppm
9 export module mod;
10 struct t {};
11 export using u = t;
13 //--- Use.cpp
14 // expected-no-diagnostics
15 import mod;
16 void foo() {
17 u v{};