From 582d43e9816467c5f2562371c9d59ee2de5154be Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 18 Dec 2007 00:44:20 +0000 Subject: [PATCH] more testcases [r18791] --- parsetest/cp_error008.c | 16 ++++++++++++++++ parsetest/shouldfail/multifield.c | 4 ++++ 2 files changed, 20 insertions(+) create mode 100644 parsetest/cp_error008.c create mode 100644 parsetest/shouldfail/multifield.c 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; +}; -- 2.20.1