[clang] [clang][Sema] support block pointers as non-type template parameters (PR #191694)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 15 19:54:54 PDT 2026
================
@@ -0,0 +1,70 @@
+// RUN: %clang_cc1 -std=c++20 -fblocks -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
+
+template<void (^B)()> void f() {}
+
+void test_literal() {
+ // CHECK: call void @_Z1fIXcvU13block_pointerFvvEadUb_EEvv()
----------------
Serosh-commits wrote:
Thanks matheus i will update it today
https://github.com/llvm/llvm-project/pull/191694
More information about the cfe-commits
mailing list