forked from OSchip/llvm-project
[SyntaxTree] Test for '\' inside token.
Differential Revision: https://reviews.llvm.org/D87895
This commit is contained in:
parent
f8f1e5fb39
commit
e616a42598
|
@ -167,6 +167,23 @@ TranslationUnit Detached
|
|||
)txt"));
|
||||
}
|
||||
|
||||
TEST_P(BuildSyntaxTreeTest, Simple_BackslashInsideToken) {
|
||||
EXPECT_TRUE(treeDumpEqual(
|
||||
R"cpp(
|
||||
in\
|
||||
t a;
|
||||
)cpp",
|
||||
R"txt(
|
||||
TranslationUnit Detached
|
||||
`-SimpleDeclaration
|
||||
|-'in\
|
||||
t'
|
||||
|-SimpleDeclarator Declarator
|
||||
| `-'a'
|
||||
`-';'
|
||||
)txt"));
|
||||
}
|
||||
|
||||
TEST_P(BuildSyntaxTreeTest, If) {
|
||||
EXPECT_TRUE(treeDumpEqualOnAnnotations(
|
||||
R"cpp(
|
||||
|
|
Loading…
Reference in New Issue