aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-06-28 15:09:40 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:06 +0100
commit6763b02abc5e0076b6f5bc0e116205250ef9fbd6 (patch)
tree485cd722ea5e69f0b0cafb9c64ca894ccf9ef3ca /tests
parentd5d881d9e946351f00cbc851b965f62553f6e830 (diff)
downloadtinycc-6763b02abc5e0076b6f5bc0e116205250ef9fbd6.tar.gz
tinycc-6763b02abc5e0076b6f5bc0e116205250ef9fbd6.tar.bz2
Accept empty struct member decls
struct S { /*nothing*/; int a; }; is an acceptable struct declaration, there may be stray semicolons in the member list.
Diffstat (limited to 'tests')
-rw-r--r--tests/tcctest.c5
1 files changed, 5 insertions, 0 deletions
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();