Debian Codegraph @

clang/test/Modules/module-local-declarations-02.cppm

raw
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/A.cppm -emit-module-interface -o %t/A.pcm
6 // RUN: %clang_cc1 -std=c++20 %t/B.cppm -fprebuilt-module-path=%t -emit-llvm -o %t/B.ll
7
8 //--- A.cppm
9 export module A;
10
11 export template<typename>
12 struct holder {
13 };
14
15 struct foo {};
16
17 export struct a {
18 holder<foo> m;
19 };
20
21 //--- B.cppm
22 // expected-no-diagnostics
23 export module B;
24
25 import A;
26
27 struct foo {};
28
29 struct b {
30 holder<foo> m;
31 };