more testcases
authorMatthias Braun <matze@braunis.de>
Tue, 18 Dec 2007 00:44:20 +0000 (00:44 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 18 Dec 2007 00:44:20 +0000 (00:44 +0000)
[r18791]

parsetest/cp_error008.c [new file with mode: 0644]
parsetest/shouldfail/multifield.c [new file with mode: 0644]

diff --git a/parsetest/cp_error008.c b/parsetest/cp_error008.c
new file mode 100644 (file)
index 0000000..22fdf82
--- /dev/null
@@ -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 (file)
index 0000000..5a67af0
--- /dev/null
@@ -0,0 +1,4 @@
+struct A {
+       int a, b;
+       int c, a;
+};