[clang] b502dc5 - [Clang] Fix test broken due to unsupported calling convention (#88472)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 11 22:13:00 PDT 2024
Author: Sirraide
Date: 2024-04-12T07:12:57+02:00
New Revision: b502dc596ba3ed1e857e163e21ed6426125760ef
URL: https://github.com/llvm/llvm-project/commit/b502dc596ba3ed1e857e163e21ed6426125760ef
DIFF: https://github.com/llvm/llvm-project/commit/b502dc596ba3ed1e857e163e21ed6426125760ef.diff
LOG: [Clang] Fix test broken due to unsupported calling convention (#88472)
#88428 ended up breaking CI because it included a test that uses the
`regcall` calling convention, which isn’t supported on all targets; I’ve
moved it into a separate file that sets the triple.
Added:
clang/test/SemaCXX/gh84473.cpp
Modified:
clang/test/SemaCXX/lambda-expressions.cpp
Removed:
################################################################################
diff --git a/clang/test/SemaCXX/gh84473.cpp b/clang/test/SemaCXX/gh84473.cpp
new file mode 100644
index 00000000000000..72f5e9c45b0c48
--- /dev/null
+++ b/clang/test/SemaCXX/gh84473.cpp
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++23 -fsyntax-only -verify %s
+// expected-no-diagnostics
+
+namespace GH84473_bug {
+void f1() {
+ int b;
+ (void) [=] [[gnu::regcall]] () {
+ (void) b;
+ };
+}
+}
diff --git a/clang/test/SemaCXX/lambda-expressions.cpp b/clang/test/SemaCXX/lambda-expressions.cpp
index 6be338064452ed..151d74f21d64dc 100644
--- a/clang/test/SemaCXX/lambda-expressions.cpp
+++ b/clang/test/SemaCXX/lambda-expressions.cpp
@@ -762,12 +762,3 @@ template auto t::operator()<int>(int a) const; // expected-note {{in instantiati
}
#endif
-
-namespace GH84473_bug {
-void f1() {
- int b;
- (void) [=] [[gnu::regcall]] () { // expected-warning {{an attribute specifier sequence in this position is a C++23 extension}}
- (void) b;
- };
-}
-}
More information about the cfe-commits
mailing list