Author: Aaron Ballman Date: 2021-04-04T10:58:56-04:00 New Revision: 241d42c38226e46ff01b774da3167ec54420bf24
URL: https://github.com/llvm/llvm-project/commit/241d42c38226e46ff01b774da3167ec54420bf24 DIFF: https://github.com/llvm/llvm-project/commit/241d42c38226e46ff01b774da3167ec54420bf24.diff LOG: Speculative fix for failing build bot. This attempts to resolve an issue found by http://45.33.8.238/macm1/6821/step_6.txt Added: Modified: clang/test/Parser/cxx0x-attributes.cpp Removed: ################################################################################ diff --git a/clang/test/Parser/cxx0x-attributes.cpp b/clang/test/Parser/cxx0x-attributes.cpp index 6ecbb5af14a4d..0b2bad6b00021 100644 --- a/clang/test/Parser/cxx0x-attributes.cpp +++ b/clang/test/Parser/cxx0x-attributes.cpp @@ -372,14 +372,14 @@ template<typename T> struct TemplateStruct {}; class FriendClassesWithAttributes { // We allow GNU-style attributes here template <class _Tp, class _Alloc> friend class __attribute__((__type_visibility__("default"))) vector; - template <class _Tp, class _Alloc> friend class __declspec(code_seg("whatever")) vector2; + template <class _Tp, class _Alloc> friend class __declspec(code_seg("foo,whatever")) vector2; // But not C++11 ones template <class _Tp, class _Alloc> friend class[[]] vector3; // expected-error {{an attribute list cannot appear here}} template <class _Tp, class _Alloc> friend class [[clang::__type_visibility__(("default"))]] vector4; // expected-error {{an attribute list cannot appear here}} // Also allowed friend struct __attribute__((__type_visibility__("default"))) TemplateStruct<FriendClassesWithAttributes>; - friend struct __declspec(code_seg("whatever")) TemplateStruct<FriendClassesWithAttributes>; + friend struct __declspec(code_seg("foo,whatever")) TemplateStruct<FriendClassesWithAttributes>; friend struct[[]] TemplateStruct<FriendClassesWithAttributes>; // expected-error {{an attribute list cannot appear here}} friend struct [[clang::__type_visibility__("default")]] TemplateStruct<FriendClassesWithAttributes>; // expected-error {{an attribute list cannot appear here}} }; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits