Skip to content

Commit f3605ae

Browse files
committed
test
1 parent 4ffe325 commit f3605ae

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎test/testsimplifytypedef.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ class TestSimplifyTypedef : public TestFixture {
236236
TEST_CASE(simplifyTypedef162);
237237
TEST_CASE(simplifyTypedef163);
238238
TEST_CASE(simplifyTypedef164);
239+
TEST_CASE(simplifyTypedef165);
239240

240241
TEST_CASE(simplifyTypedefFunction1);
241242
TEST_CASE(simplifyTypedefFunction2); // ticket #1685
@@ -3903,6 +3904,11 @@ class TestSimplifyTypedef : public TestFixture {
39033904
ASSERT_EQUALS("struct S { S & operator= ( const S & ) = delete ; } ;", tok(code4));
39043905
}
39053906

3907+
void simplifyTypedef165() {
3908+
const char code[] = "struct T {}; void f() { typedef T* T; T x; }";
3909+
ASSERT_EQUALS("struct T { } ; void f ( ) { T * x ; }", tok(code));
3910+
}
3911+
39063912
void simplifyTypedefFunction1() {
39073913
{
39083914
const char code[] = "typedef void (*my_func)();\n"

0 commit comments

Comments
 (0)