Some compiler, notably older gccs (< 8) can have trouble with multiline raw
string literals inside macros. This just moves the code outsize the macro, to
attempt to appease the bots.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367885
91177308-0d34-0410-b5e6-
96231b3b80d8
for (bool VisitImplCode : {true, false}) {
CXXCtorInitializerVisitor Visitor(VisitImplCode);
Visitor.ExpectMatch("initializer", 7, 17);
- EXPECT_TRUE(Visitor.runOver(R"cpp(
+ auto Code = R"cpp(
class A {};
class B : public A {
B() {};
class C : public A {
C() : A() {}
};
- )cpp",
- CXXCtorInitializerVisitor::Lang_CXX));
+ )cpp";
+ EXPECT_TRUE(Visitor.runOver(Code, CXXCtorInitializerVisitor::Lang_CXX));
EXPECT_EQ(Visitor.VisitedImplicitInitializer, VisitImplCode);
}
}