☰
Debian Codegraph
@
1:19.1.7-22
1:19.1.7-20
/
/
clang
/
test
/
CXX
/
expr
/
expr.prim
/
expr.prim.lambda
/
p2-template-parameter.cpp
☽
☼
clang/test/CXX/expr/expr.prim/expr.prim.lambda/p2-template-parameter.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clang_cc1 -std=c++17 %s -verify
2
3
template<auto> struct Nothing {};
4
5
void pr33696() {
6
Nothing<[]() { return 0; }()> nothing; // expected-error{{a lambda expression cannot appear in this context}}
7
}