Skip to content

Commit 241d42c

Browse files
committed
Speculative fix for failing build bot.
This attempts to resolve an issue found by http://45.33.8.238/macm1/6821/step_6.txt
1 parent d094f3c commit 241d42c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Parser/cxx0x-attributes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,14 +372,14 @@ template<typename T> struct TemplateStruct {};
372372
class FriendClassesWithAttributes {
373373
// We allow GNU-style attributes here
374374
template <class _Tp, class _Alloc> friend class __attribute__((__type_visibility__("default"))) vector;
375-
template <class _Tp, class _Alloc> friend class __declspec(code_seg("whatever")) vector2;
375+
template <class _Tp, class _Alloc> friend class __declspec(code_seg("foo,whatever")) vector2;
376376
// But not C++11 ones
377377
template <class _Tp, class _Alloc> friend class[[]] vector3; // expected-error {{an attribute list cannot appear here}}
378378
template <class _Tp, class _Alloc> friend class [[clang::__type_visibility__(("default"))]] vector4; // expected-error {{an attribute list cannot appear here}}
379379

380380
// Also allowed
381381
friend struct __attribute__((__type_visibility__("default"))) TemplateStruct<FriendClassesWithAttributes>;
382-
friend struct __declspec(code_seg("whatever")) TemplateStruct<FriendClassesWithAttributes>;
382+
friend struct __declspec(code_seg("foo,whatever")) TemplateStruct<FriendClassesWithAttributes>;
383383
friend struct[[]] TemplateStruct<FriendClassesWithAttributes>; // expected-error {{an attribute list cannot appear here}}
384384
friend struct [[clang::__type_visibility__("default")]] TemplateStruct<FriendClassesWithAttributes>; // expected-error {{an attribute list cannot appear here}}
385385
};

0 commit comments

Comments
 (0)