[Support] Add a version of fs::make_absolute with a custom CWD.
[oota-llvm.git] / unittests / Support / TrailingObjectsTest.cpp
index fe1fbf153076bb835ff216f5bfe8a0ad700ad1de..41e2d4181f508aff5b6b7fe7b9d21d75dcee7869 100644 (file)
@@ -16,7 +16,7 @@ namespace {
 // This class, beyond being used by the test case, a nice
 // demonstration of the intended usage of TrailingObjects, with a
 // single trailing array.
-class Class1 final : private TrailingObjects<Class1, short> {
+class Class1 final : protected TrailingObjects<Class1, short> {
   friend TrailingObjects;
 
   unsigned NumShorts;
@@ -47,7 +47,7 @@ public:
 
 // Here, there are two singular optional object types appended.
 // Note that it fails to compile without the alignment spec.
-class LLVM_ALIGNAS(8) Class2 final : private TrailingObjects<Class2, double, short> {
+class LLVM_ALIGNAS(8) Class2 final : protected TrailingObjects<Class2, double, short> {
   friend TrailingObjects;
 
   bool HasShort, HasDouble;