From 605a4f54c91e1ee47c6c96d4dc8a4396fd1a1fcf Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Wed, 3 Jun 2026 12:48:51 +0200 Subject: [PATCH 1/2] Update testsimplifytypedef.cpp --- test/testsimplifytypedef.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/testsimplifytypedef.cpp b/test/testsimplifytypedef.cpp index 022412139f1..551f137b15a 100644 --- a/test/testsimplifytypedef.cpp +++ b/test/testsimplifytypedef.cpp @@ -232,6 +232,7 @@ class TestSimplifyTypedef : public TestFixture { TEST_CASE(simplifyTypedef159); TEST_CASE(simplifyTypedef160); TEST_CASE(simplifyTypedef161); + TEST_CASE(simplifyTypedef162); TEST_CASE(simplifyTypedefFunction1); TEST_CASE(simplifyTypedefFunction2); // ticket #1685 @@ -3859,6 +3860,14 @@ class TestSimplifyTypedef : public TestFixture { TODO_ASSERT_EQUALS(exp2, cur2, tok(code2)); } + void simplifyTypedef162() { + const char code[] = "using std::vector;\n" // #12041 + "typedef vector ints;\n" + "void f(ints v);\n"; + const char exp[] = "3: void f ( std :: vector < int > v@var1 ) ;"; + ASSERT_EQUALS(exp, tok(code)); + } + void simplifyTypedefFunction1() { { const char code[] = "typedef void (*my_func)();\n" From 75722f9134048cc66c32ce13c85a551cf5fd8d5b Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Wed, 3 Jun 2026 15:09:24 +0200 Subject: [PATCH 2/2] Update testsimplifytypedef.cpp --- test/testsimplifytypedef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testsimplifytypedef.cpp b/test/testsimplifytypedef.cpp index 551f137b15a..84a95a81cfc 100644 --- a/test/testsimplifytypedef.cpp +++ b/test/testsimplifytypedef.cpp @@ -3864,7 +3864,7 @@ class TestSimplifyTypedef : public TestFixture { const char code[] = "using std::vector;\n" // #12041 "typedef vector ints;\n" "void f(ints v);\n"; - const char exp[] = "3: void f ( std :: vector < int > v@var1 ) ;"; + const char exp[] = "void f ( std :: vector < int > v ) ;"; ASSERT_EQUALS(exp, tok(code)); }