Skip to content

Commit 09de5e5

Browse files
[Clang] Fix failing CI with different test case attribute & host triple (#76863)
As in title, a8f4397 broke CI due to the calling convention not available on certain targets. This patch uses a simpler calling convention and enables the test only when the attribute exists. It's verified that this test crashes the compiler before a8f4397 so it's the same effect as the previous test. Disabling the test on platforms that don't have the calling convention is fine because it's guarding against a frontend bug.
1 parent 155d584 commit 09de5e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/SemaCXX/template-instantiation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// RUN: %clang_cc1 -verify -fsyntax-only -Wno-ignored-attributes %s
1+
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -verify -fsyntax-only %s
22
// expected-no-diagnostics
33

44
namespace GH76521 {
55

66
template <typename T>
77
void foo() {
8-
auto l = []() __attribute__((pcs("aapcs-vfp"))) {};
8+
auto l = []() __attribute__((preserve_most)) {};
99
}
1010

1111
void bar() {

0 commit comments

Comments
 (0)