Skip to content

Commit 1c14c73

Browse files
committed
add test
1 parent 6e142ba commit 1c14c73

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
@@ -234,6 +234,7 @@ class TestSimplifyTypedef : public TestFixture {
234234
TEST_CASE(simplifyTypedef161);
235235
TEST_CASE(simplifyTypedef162);
236236
TEST_CASE(simplifyTypedef163);
237+
TEST_CASE(simplifyTypedef164);
237238

238239
TEST_CASE(simplifyTypedefFunction1);
239240
TEST_CASE(simplifyTypedefFunction2); // ticket #1685
@@ -3874,6 +3875,11 @@ class TestSimplifyTypedef : public TestFixture {
38743875
ASSERT_THROW_INTERNAL(tok(code), INTERNAL);
38753876
}
38763877

3878+
void simplifyTypedef164() {
3879+
const char code[] = "typedef struct D{x;}y y;";
3880+
ASSERT_THROW_INTERNAL(tok(code), INTERNAL);
3881+
}
3882+
38773883
void simplifyTypedefFunction1() {
38783884
{
38793885
const char code[] = "typedef void (*my_func)();\n"

0 commit comments

Comments
 (0)