Skip to content

Commit

Permalink
Refs #12647: add test cases (#6356)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Apr 27, 2024
1 parent 3f7ba6d commit 1b37807
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/testsimplifytypedef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3569,8 +3569,12 @@ class TestSimplifyTypedef : public TestFixture {
code = "typedef unsigned long X;\n"
"typedef unsigned long X;\n"
"typedef X Y;\n"
"Y y;\n";
exp = "long y ;";
"typedef X* Yp;\n"
"typedef X Ya[3];\n"
"Y y;\n"
"Yp yp;\n"
"Ya ya;\n";
exp = "long y ; long * yp ; long ya [ 3 ] ;";
ASSERT_EQUALS(exp, tok(code));
}

Expand Down

0 comments on commit 1b37807

Please sign in to comment.