Add missing test coverage for an inheritance model attrib merge diag.
Without this, no tests fail if I remove the Diag() in the first if in Sema::mergeMSInheritanceAttr(). llvm-svn: 281136
This commit is contained in:
parent
027d7a0994
commit
b5bdf3410e
|
@ -291,3 +291,11 @@ static_assert(sizeof(int SingleInheritanceAsVirtualBeforePragma::*) == 12, "");
|
|||
|
||||
#pragma pointers_to_members(single) // expected-error{{unexpected 'single'}}
|
||||
#endif
|
||||
|
||||
namespace merging {
|
||||
struct __single_inheritance S;
|
||||
struct __single_inheritance S;
|
||||
|
||||
struct __single_inheritance M; // expected-note{{previous inheritance model specified here}}
|
||||
struct __multiple_inheritance M; // expected-error{{inheritance model does not match previous declaration}}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue