Move the rest of the Sema C++ tests into the SemaCXX test directory.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55178 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/inherit.cpp b/test/SemaCXX/inherit.cpp
new file mode 100644
index 0000000..82d8db3
--- /dev/null
+++ b/test/SemaCXX/inherit.cpp
@@ -0,0 +1,25 @@
+// RUN: clang -fsyntax-only -verify %s

+class A { };

+

+class B1 : A { };

+

+class B2 : virtual A { };

+

+class B3 : virtual virtual A { }; // expected-error{{duplicate 'virtual' in base specifier}}

+

+class C : public B1, private B2 { };

+

+

+class D;

+

+class E : public D { }; // expected-error{{base class has incomplete type}}

+

+typedef int I;

+

+class F : public I { }; // expected-error{{base specifier must name a class}}

+

+union U1 : public A { }; // expected-error{{unions cannot have base classes}}

+

+union U2 {};

+

+class G : public U2 { }; // expected-error{{unions cannot be base classes}}