We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e142ba commit 1c14c73Copy full SHA for 1c14c73
1 file changed
test/testsimplifytypedef.cpp
@@ -234,6 +234,7 @@ class TestSimplifyTypedef : public TestFixture {
234
TEST_CASE(simplifyTypedef161);
235
TEST_CASE(simplifyTypedef162);
236
TEST_CASE(simplifyTypedef163);
237
+ TEST_CASE(simplifyTypedef164);
238
239
TEST_CASE(simplifyTypedefFunction1);
240
TEST_CASE(simplifyTypedefFunction2); // ticket #1685
@@ -3874,6 +3875,11 @@ class TestSimplifyTypedef : public TestFixture {
3874
3875
ASSERT_THROW_INTERNAL(tok(code), INTERNAL);
3876
}
3877
3878
+ void simplifyTypedef164() {
3879
+ const char code[] = "typedef struct D{x;}y y;";
3880
+ ASSERT_THROW_INTERNAL(tok(code), INTERNAL);
3881
+ }
3882
+
3883
void simplifyTypedefFunction1() {
3884
{
3885
const char code[] = "typedef void (*my_func)();\n"
0 commit comments