[AST] Fix RecursiveASTVisitorTest multiline string literal. NFC

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.

llvm-svn: 367885
This commit is contained in:
David Green 2019-08-05 16:27:36 +00:00
parent 9008d8c5ff
commit a96cfee98a
1 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ TEST(RecursiveASTVisitor, CXXCtorInitializerVisitNoImplicit) {
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() {};
@ -49,8 +49,8 @@ TEST(RecursiveASTVisitor, CXXCtorInitializerVisitNoImplicit) {
class C : public A {
C() : A() {}
};
)cpp",
CXXCtorInitializerVisitor::Lang_CXX));
)cpp";
EXPECT_TRUE(Visitor.runOver(Code, CXXCtorInitializerVisitor::Lang_CXX));
EXPECT_EQ(Visitor.VisitedImplicitInitializer, VisitImplCode);
}
}