Skip to content

Commit b502dc5

Browse files
authored
[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.
1 parent 506ff54 commit b502dc5

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

clang/test/SemaCXX/gh84473.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++23 -fsyntax-only -verify %s
2+
// expected-no-diagnostics
3+
4+
namespace GH84473_bug {
5+
void f1() {
6+
int b;
7+
(void) [=] [[gnu::regcall]] () {
8+
(void) b;
9+
};
10+
}
11+
}

clang/test/SemaCXX/lambda-expressions.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -762,12 +762,3 @@ template auto t::operator()<int>(int a) const; // expected-note {{in instantiati
762762

763763
}
764764
#endif
765-
766-
namespace GH84473_bug {
767-
void f1() {
768-
int b;
769-
(void) [=] [[gnu::regcall]] () { // expected-warning {{an attribute specifier sequence in this position is a C++23 extension}}
770-
(void) b;
771-
};
772-
}
773-
}

0 commit comments

Comments
 (0)