================
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 %s -std=c++26 -freflection -fblocks -fsyntax-only
+
+struct A {
+ int operator^(int (^block)(int x)) const {
+ return block(0);
+ }
+};
+
+
+int main()
+{
+ (void)(A{}^^(int y){ return y + 1; });
----------------
Sirraide wrote:
Also add
```c
1^^(){ return 1; }();
1^^{ return 1; }();
```
https://github.com/llvm/llvm-project/pull/164692
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits