File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -265,4 +265,18 @@ static_assert(__is_trivially_copyable(S10));
265265// expected-note@-1 {{because it has a user provided move assignment operator}} \
266266// expected-note@-1 {{'S10' is not trivially copyable}} \
267267// expected-note@#tc-S10 {{'S10' defined here}}
268+
269+ struct B5 : B4 {
270+ };
271+
272+ struct B6 : B5 {
273+ };
274+
275+ struct S11 : B6 { // #tc-S11
276+ };
277+ static_assert (__is_trivially_copyable(S11));
278+ // expected-error@-1 {{static assertion failed due to requirement '__is_trivially_copyable(trivially_copyable::S11)'}} \
279+ // expected-note@-1 {{because it has a non-trivially-copyable base 'B6'}} \
280+ // expected-note@-1 {{'S11' is not trivially copyable}} \
281+ // expected-note@#tc-S11 {{'S11' defined here}}
268282}
You can’t perform that action at this time.
0 commit comments