Skip to content

Commit 1b37807

Browse files
Refs #12647: add test cases (#6356)
1 parent 3f7ba6d commit 1b37807

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

test/testsimplifytypedef.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3569,8 +3569,12 @@ class TestSimplifyTypedef : public TestFixture {
35693569
code = "typedef unsigned long X;\n"
35703570
"typedef unsigned long X;\n"
35713571
"typedef X Y;\n"
3572-
"Y y;\n";
3573-
exp = "long y ;";
3572+
"typedef X* Yp;\n"
3573+
"typedef X Ya[3];\n"
3574+
"Y y;\n"
3575+
"Yp yp;\n"
3576+
"Ya ya;\n";
3577+
exp = "long y ; long * yp ; long ya [ 3 ] ;";
35743578
ASSERT_EQUALS(exp, tok(code));
35753579
}
35763580

0 commit comments

Comments
 (0)