From: Aaron Ballman Date: Sun, 4 Apr 2021 14:58:56 +0000 (-0400) Subject: Speculative fix for failing build bot. X-Git-Tag: llvmorg-14-init~10494 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=241d42c38226e46ff01b774da3167ec54420bf24;p=platform%2Fupstream%2Fllvm.git Speculative fix for failing build bot. This attempts to resolve an issue found by http://45.33.8.238/macm1/6821/step_6.txt --- diff --git a/clang/test/Parser/cxx0x-attributes.cpp b/clang/test/Parser/cxx0x-attributes.cpp index 6ecbb5a..0b2bad6 100644 --- a/clang/test/Parser/cxx0x-attributes.cpp +++ b/clang/test/Parser/cxx0x-attributes.cpp @@ -372,14 +372,14 @@ template struct TemplateStruct {}; class FriendClassesWithAttributes { // We allow GNU-style attributes here template friend class __attribute__((__type_visibility__("default"))) vector; - template friend class __declspec(code_seg("whatever")) vector2; + template friend class __declspec(code_seg("foo,whatever")) vector2; // But not C++11 ones template friend class[[]] vector3; // expected-error {{an attribute list cannot appear here}} template friend class [[clang::__type_visibility__(("default"))]] vector4; // expected-error {{an attribute list cannot appear here}} // Also allowed friend struct __attribute__((__type_visibility__("default"))) TemplateStruct; - friend struct __declspec(code_seg("whatever")) TemplateStruct; + friend struct __declspec(code_seg("foo,whatever")) TemplateStruct; friend struct[[]] TemplateStruct; // expected-error {{an attribute list cannot appear here}} friend struct [[clang::__type_visibility__("default")]] TemplateStruct; // expected-error {{an attribute list cannot appear here}} };