llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: None (Sirraide) <details> <summary>Changes</summary> #<!-- -->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. --- Full diff: https://github.com/llvm/llvm-project/pull/88472.diff 2 Files Affected: - (added) clang/test/SemaCXX/gh84473.cpp (+11) - (modified) clang/test/SemaCXX/lambda-expressions.cpp (-9) ``````````diff 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; - }; -} -} `````````` </details> https://github.com/llvm/llvm-project/pull/88472 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits