Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions test/testtokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5453,6 +5453,19 @@ class TestTokenizer : public TestFixture {
ASSERT_EQUALS("void search ( ) ;\nvoid dostuff ( ) { search ( ) ; }", tokenizeAndStringify(code));
}

{
const char code[] = "using namespace std;\n" // #8789
"void f(int* p, int* q) {\n"
" search(p, q, p);\n"
" search(p, q, p, q);\n"
"}\n";
ASSERT_EQUALS("void f ( int * p , int * q ) {\n"
"search ( p , q , p ) ;\n"
"std :: search ( p , q , p , q ) ;\n"
"}",
tokenizeAndStringify(code));
}

{
const char code[] = "using namespace std;\n"
"void foo() {map(a, b); }\n"; // That's obviously not std::map<>
Expand Down
Loading