Skip to content

Commit 848a003

Browse files
Update testother.cpp
1 parent 1ef66ad commit 848a003

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/testother.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6401,6 +6401,10 @@ class TestOther : public TestFixture {
64016401
" s.i = o;\n"
64026402
"}\n");
64036403
ASSERT_EQUALS("", errout_str());
6404+
6405+
check("int N;\n" // #14234
6406+
"void f() { ::N = N; }\n");
6407+
ASSERT_EQUALS("[test.cpp:2:16]: (style) Redundant assignment of '::N' to itself. [selfAssignment]\n", errout_str());
64046408
}
64056409

64066410
void trac1132() {

0 commit comments

Comments
 (0)