Skip to content

Commit b6baab2

Browse files
Update testsimplifytypedef.cpp
1 parent d0ae85d commit b6baab2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/testsimplifytypedef.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3879,6 +3879,9 @@ class TestSimplifyTypedef : public TestFixture {
38793879
void simplifyTypedef164() {
38803880
const char code[] = "typedef struct D{x;}y y;";
38813881
ASSERT_THROW_INTERNAL(tok(code), INTERNAL);
3882+
3883+
const char code2[] = "typedef struct { int t; } t;"; // #14966
3884+
ASSERT_EQUALS("struct t { int t ; } ;", tok(code2));
38823885
}
38833886

38843887
void simplifyTypedefFunction1() {

0 commit comments

Comments
 (0)