================
@@ -0,0 +1,28 @@
+// RUN: %clang_cc1 -emit-llvm -x c %s -triple x86_64-unknown-linux-gnu -O1 -o
- | FileCheck %s --check-prefix=C
+// RUN: %clang_cc1 -emit-llvm -x c++ %s -triple x86_64-unknown-linux-gnu
-std=c++23 -O1 -o - | FileCheck %s --check-prefix=CXX
+
+// C-LABEL: define {{.*}} @with_noipa(
+// C-SAME: ) {{.*}}#[[NOIPA_ATTR:[0-9]+]] {
+__attribute__((noipa)) int with_noipa(int x) {
+ return x + 1;
+}
+
+// C-LABEL: define {{.*}} @without_noipa(
+// C-SAME: ) {{.*}}#[[PLAIN_ATTR:[0-9]+]] {
+int without_noipa(int x) {
+ return x - 1;
+}
+
+// CXX-LABEL: define {{.*}} @_Z10with_noipai(
----------------
Fznamznon wrote:
I think if you do
```suggestion
// CXX-LABEL: define {{.*}} @{{.*}}with_noipai(
```
You can merge CXX and C filecheck check lines
https://github.com/llvm/llvm-project/pull/207502
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits