Author: lijinpei-amd Date: 2026-06-09T12:36:06Z New Revision: 54d5646b0d70e3a198817c61c40ba0226a66bf29
URL: https://github.com/llvm/llvm-project/commit/54d5646b0d70e3a198817c61c40ba0226a66bf29 DIFF: https://github.com/llvm/llvm-project/commit/54d5646b0d70e3a198817c61c40ba0226a66bf29.diff LOG: [Sema] Add original GH192264 reproducer as a section-conflict regression test (#202276) Follow up of https://github.com/llvm/llvm-project/pull/200873 Added: Modified: clang/test/SemaCXX/attr-section.cpp Removed: ################################################################################ diff --git a/clang/test/SemaCXX/attr-section.cpp b/clang/test/SemaCXX/attr-section.cpp index 95d4fc53ebe6c..fb471b3f8e229 100644 --- a/clang/test/SemaCXX/attr-section.cpp +++ b/clang/test/SemaCXX/attr-section.cpp @@ -84,3 +84,10 @@ auto lambda = [](int val) __attribute__((section("lambda_op_pragma"))) { return #pragma clang section bss="lambda_op_pragma" // expected-error {{this causes a section type conflict with 'operator()'}} #pragma clang section bss="" } // namespace lambda_call_operator_pragma + +namespace GH192264_original { +struct S {}; +using F = decltype([](auto val) // expected-note {{declared here}} +__attribute__((section("gh192264"))) const S s{}; // expected-error {{expected body of lambda expression}} +__attribute__((section("gh192264"))) int i{}; // expected-error {{'i' causes a section type conflict with 'operator()'}} +} // namespace GH192264_original _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
