Skip to content

Commit 48ff068

Browse files
authored
[NFC] [C++] [Modules] Mark P2788 as implemented and add test (#147138)
This is already implemented.
1 parent e427bd5 commit 48ff068

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

clang/test/SemaCXX/P2788.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// RUN: rm -rf %t
2+
// RUN: split-file %s %t
3+
4+
5+
// RUN: %clang_cc1 -std=c++20 -verify -emit-module-interface %t/B.cpp -o %t/B.pcm
6+
// RUN: %clang_cc1 -std=c++20 -verify -emit-module-interface %t/A.cpp -fmodule-file=A:B=%t/B.pcm -o %t/A.pcm
7+
8+
//--- A.cpp
9+
// expected-no-diagnostics
10+
export module A;
11+
import :B;
12+
export int x = dimensions + 1;
13+
14+
//--- B.cpp
15+
// expected-no-diagnostics
16+
export module A:B;
17+
const int dimensions=3;

clang/www/cxx_status.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ <h2 id="cxx20">C++20 implementation status</h2>
947947
</tr>
948948
<tr> <!-- from Issaquah 2023 -->
949949
<td><a href="https://wg21.link/P2788R0">P2788R0</a> (<a href="#dr">DR</a>)</td>
950-
<td class="none" align="center">No</td>
950+
<td class="full" align="center">Clang 17</td>
951951
</tr>
952952
<tr>
953953
<td>Coroutines</td>

0 commit comments

Comments
 (0)