summaryrefslogtreecommitdiffhomepage
path: root/CompilerDriver/cc2/regression-tests/pure2-bugfix-for-non-local-function-expression.cpp2
blob: 45edbc0b1748f6e3624e4973d177c4a24db2ba90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//  Clang note: When using Clang as the Cpp1 compiler, the following uses of an unnamed function
//  require Clang 13 or higher; Clang 12 complains "lambda expression in an unevaluated operand"
//  Standalone Cpp1 repro: https://godbolt.org/z/dznnYTvc6

v: <T> concept = :() -> bool = true;();

u: type == std::type_identity_t<decltype(:() = {})>;

t: @struct type = {
    this: std::type_identity_t<decltype(:() = {})>;
}

main: () = { }