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:
Nico Weber 2016-09-10 13:03:59 +00:00
parent 027d7a0994
commit b5bdf3410e
1 changed files with 8 additions and 0 deletions

View File

@ -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}}
}