From 263915832993dd12beee10e204f9ebcc6c786ed2 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 30 Dec 2023 23:39:37 +0100 Subject: Meta: initial commit of WestCo optimized toolchain. Signed-off-by: Amlal El Mahrouss --- .../pure2-bugfix-for-non-local-function-expression.cpp2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 CompilerDriver/cc2/regression-tests/pure2-bugfix-for-non-local-function-expression.cpp2 (limited to 'CompilerDriver/cc2/regression-tests/pure2-bugfix-for-non-local-function-expression.cpp2') diff --git a/CompilerDriver/cc2/regression-tests/pure2-bugfix-for-non-local-function-expression.cpp2 b/CompilerDriver/cc2/regression-tests/pure2-bugfix-for-non-local-function-expression.cpp2 new file mode 100644 index 0000000..45edbc0 --- /dev/null +++ b/CompilerDriver/cc2/regression-tests/pure2-bugfix-for-non-local-function-expression.cpp2 @@ -0,0 +1,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: concept = :() -> bool = true;(); + +u: type == std::type_identity_t; + +t: @struct type = { + this: std::type_identity_t; +} + +main: () = { } -- cgit v1.2.3