[NFC] [C++] [Modules] Mark P2115 as implemented and add test (#147489)
This is already implemented. Proposal: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2115r0.html
This commit is contained in:
parent
4c7cfe3fdb
commit
1830b87090
21
clang/test/SemaCXX/P2115.cpp
Normal file
21
clang/test/SemaCXX/P2115.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
// RUN: rm -rf %t
|
||||
// RUN: split-file %s %t
|
||||
|
||||
|
||||
// RUN: %clang -std=c++20 -fmodule-header %t/A.h -o %t/A.pcm
|
||||
// RUN: %clang -std=c++20 -fmodule-header %t/B.h -o %t/B.pcm
|
||||
// RUN: %clang -std=c++20 -fsyntax-only -fmodule-file=%t/A.pcm -fmodule-file=%t/B.pcm %t/main.cpp
|
||||
|
||||
//--- A.h
|
||||
// expected-no-diagnostics
|
||||
enum { A = 0 };
|
||||
|
||||
//--- B.h
|
||||
// expected-no-diagnostics
|
||||
enum { B = 1 };
|
||||
|
||||
//--- main.cpp
|
||||
// expected-no-diagnostics
|
||||
import "A.h";
|
||||
import "B.h";
|
||||
int main() {}
|
@ -935,7 +935,7 @@ C++23, informally referred to as C++26.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://wg21.link/p2115r0">P2115R0</a></td>
|
||||
<td class="partial" align="center">Partial</td>
|
||||
<td class="full" align="center">Yes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://wg21.link/p1815r2">P1815R2</a></td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user