From 6763b02abc5e0076b6f5bc0e116205250ef9fbd6 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Tue, 28 Jun 2016 15:09:40 +0200 Subject: Accept empty struct member decls struct S { /*nothing*/; int a; }; is an acceptable struct declaration, there may be stray semicolons in the member list. --- tests/tcctest.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/tcctest.c b/tests/tcctest.c index 7fd8171..41a9a10 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -642,6 +642,11 @@ union union2 { struct struct1 st1, st2; +struct empty_mem { + /* nothing */ ; + int x; +}; + int main(int argc, char **argv) { string_test(); -- cgit v1.3.1