forked from OSchip/llvm-project
[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:
parent
9008d8c5ff
commit
a96cfee98a
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue