diff --git a/clang/test/Parser/cxx0x-attributes.cpp b/clang/test/Parser/cxx0x-attributes.cpp index 6ecbb5af14a4d8..0b2bad6b000212 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}} };