Skip to content

Commit 334d088

Browse files
Update testsimplifyusing.cpp
1 parent 8244e7b commit 334d088

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/testsimplifyusing.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class TestSimplifyUsing : public TestFixture {
7474
TEST_CASE(simplifyUsing35);
7575
TEST_CASE(simplifyUsing36);
7676
TEST_CASE(simplifyUsing37);
77+
TEST_CASE(simplifyUsing38);
7778

7879
TEST_CASE(simplifyUsing8970);
7980
TEST_CASE(simplifyUsing8971);
@@ -908,6 +909,16 @@ class TestSimplifyUsing : public TestFixture {
908909
ASSERT_EQUALS("", errout_str());
909910
}
910911

912+
void simplifyUsing38() {
913+
const char code[] = "using std::begin;\n" // #14424
914+
"using std::end;\n"
915+
"Unknown begin;\n"
916+
"int end;\n";
917+
const char expected[] = "Unknown begin ; int end ;";
918+
ASSERT_EQUALS(expected, tok(code));
919+
ASSERT_EQUALS("", errout_str());
920+
}
921+
911922
void simplifyUsing8970() {
912923
const char code[] = "using V = std::vector<int>;\n"
913924
"struct A {\n"

0 commit comments

Comments
 (0)