[clang] [Clang] Diagnose conflict between always_inline/noinline attributes (PR #215173)
Kenzo Tjandra via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 16:56:09 PDT 2026
================
@@ -0,0 +1,49 @@
+// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+
+template <typename T>
+[[clang::noinline]] void foo(T) {}
+
+// Explicit specialization should not inherit noinline
+template <>
+[[clang::always_inline]] void foo<int>(int) {}
----------------
ketjandr wrote:
Thanks - added!
https://github.com/llvm/llvm-project/pull/215173
More information about the cfe-commits
mailing list