You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
284 B
9 lines
284 B
4 months ago
|
// RUN: %clang_cc1 -std=c++2a %s -verify
|
||
|
|
||
|
auto L0 = []<> { }; //expected-error {{cannot be empty}}
|
||
|
|
||
|
auto L1 = []<typename T1, typename T2> { };
|
||
|
auto L2 = []<typename T1, typename T2>(T1 arg1, T2 arg2) -> T1 { };
|
||
|
auto L3 = []<typename T>(auto arg) { T t; };
|
||
|
auto L4 = []<int I>() { };
|