1 parent d0ae85d commit b6baab2Copy full SHA for b6baab2
1 file changed
test/testsimplifytypedef.cpp
@@ -3879,6 +3879,9 @@ class TestSimplifyTypedef : public TestFixture {
3879
void simplifyTypedef164() {
3880
const char code[] = "typedef struct D{x;}y y;";
3881
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));
3885
}
3886
3887
void simplifyTypedefFunction1() {
0 commit comments