Skip to content

Commit 4cdec25

Browse files
Update testtokenize.cpp
1 parent f64b7df commit 4cdec25

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎test/testtokenize.cpp‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3037,14 +3037,19 @@ class TestTokenizer : public TestFixture {
30373037
}
30383038

30393039
void vardecl36() {
3040-
const char code[] = "struct S {\n"
3041-
" bool f() const;\n"
3040+
const char code[] = "struct S {\n" // #15086
3041+
" bool f1() const;\n"
3042+
" bool f2() const;\n"
30423043
" int g() const;\n"
30433044
" int x, y;\n"
30443045
"};\n"
3045-
"bool S::f() const {\n"
3046+
"bool S::f1() const {\n"
30463047
" const bool b = x ? g() < 0 : 0 > y;\n"
30473048
" return b;\n"
3049+
"}\n"
3050+
"bool S::f2() const {\n"
3051+
" const bool b = g() < x ? x != y : 0 > y;\n"
3052+
" return b;\n"
30483053
"}\n";
30493054
const char expected[] = "struct S {\n"
30503055
"bool f ( ) const ;\n"

0 commit comments

Comments
 (0)