Index: libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp =================================================================== --- libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp +++ libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp @@ -331,8 +331,8 @@ doAppendSourceTest(TC); } for (auto const & TC : LongLHSCases) { - doAppendSourceAllocTest(TC); - doAppendSourceAllocTest(TC); + LIBCPP_ONLY(doAppendSourceAllocTest(TC)); + LIBCPP_ONLY(doAppendSourceAllocTest(TC)); } test_sfinae(); Index: libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp =================================================================== --- libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp +++ libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp @@ -356,7 +356,7 @@ const char* E = TC.expect; PathReserve(LHS, StrLen(E) + 5); { - DisableAllocationGuard g; + LIBCPP_ONLY(DisableAllocationGuard g); path& Ref = (LHS += RHS); assert(&Ref == &LHS); } @@ -368,14 +368,14 @@ const char* E = TC.expect; PathReserve(LHS, StrLen(E) + 5); { - DisableAllocationGuard g; + LIBCPP_ONLY(DisableAllocationGuard g); path& Ref = (LHS += RHS); assert(&Ref == &LHS); } assert(LHS == E); } - doConcatSourceAllocTest(TC); - doConcatSourceAllocTest(TC); + LIBCPP_ONLY(doConcatSourceAllocTest(TC)); + LIBCPP_ONLY(doConcatSourceAllocTest(TC)); } for (auto const& TC : CharTestCases) { doConcatECharTest(TC); Index: libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp =================================================================== --- libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp +++ libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -// UNSUPPORTED: c++03 +// UNSUPPORTED: c++03, !libc++ //