https://github.com/Sirraide created https://github.com/llvm/llvm-project/pull/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. >From bb043bf20f85fcc7d57d973c65ea275f8ec02743 Mon Sep 17 00:00:00 2001 From: Sirraide <aeternalm...@gmail.com> Date: Fri, 12 Apr 2024 07:07:17 +0200 Subject: [PATCH] [Clang] Fix test broken due to unsupported calling convention --- clang/test/SemaCXX/gh84473.cpp | 11 +++++++++++ clang/test/SemaCXX/lambda-expressions.cpp | 9 --------- 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 clang/test/SemaCXX/gh84473.cpp 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; - }; -} -} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits