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
/
SemaTemplate
/
using-decl.cpp
blob
1ef2a2dfaa0194847dadcafffddc20f6f0609f42
1
// RUN: %clang_cc1 -std=c++2a -verify %s
2
// expected-no-diagnostics
3
4
namespace
UsingInGenericLambda
{
5
namespace
a
{
6
enum
{
b
};
7
}
8
template
<
typename
>
void
c
() {
9
auto
d
= [](
auto
) {
10
using
a
::
b
;
11
(
void
)
b
;
12
};
13
d
(
0
);
14
}
15
void
e
() {
c
<
int
>(); }
16
}