repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Modules
/
cxx20-10-2-ex7.cpp
blob
e458df2d7f5c36675609fb53adf10726a01f5e99
1
// Based on C++20 10.2 example 6.
2
3
// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -verify -o %t
4
5
// expected-no-diagnostics
6
7
export module M
;
8
export
namespace
N
{
9
int
x
;
// OK
10
static_assert
(
1
==
1
);
// No diagnostic after P2615R1 DR
11
}
// namespace N