From: Matthias Braun Date: Tue, 18 Dec 2007 00:44:20 +0000 (+0000) Subject: more testcases X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=582d43e9816467c5f2562371c9d59ee2de5154be;p=cparser more testcases [r18791] --- diff --git a/parsetest/cp_error008.c b/parsetest/cp_error008.c new file mode 100644 index 0000000..22fdf82 --- /dev/null +++ b/parsetest/cp_error008.c @@ -0,0 +1,16 @@ +int FirstOne(long long arg1) +{ + union doub { + unsigned short i[4]; + long long d; + }; + + union doub xx; + x.d = arg1; + return x.i[2]; +} + +int main(void) +{ + return FirstOne(0); +} diff --git a/parsetest/shouldfail/multifield.c b/parsetest/shouldfail/multifield.c new file mode 100644 index 0000000..5a67af0 --- /dev/null +++ b/parsetest/shouldfail/multifield.c @@ -0,0 +1,4 @@ +struct A { + int a, b; + int c, a; +};