another compound literal test
authorMatthias Braun <matze@braunis.de>
Fri, 15 Feb 2008 14:45:30 +0000 (14:45 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 15 Feb 2008 14:45:30 +0000 (14:45 +0000)
[r18867]

parsetest/compoundlit2.c [new file with mode: 0644]

diff --git a/parsetest/compoundlit2.c b/parsetest/compoundlit2.c
new file mode 100644 (file)
index 0000000..e2ef264
--- /dev/null
@@ -0,0 +1,8 @@
+int main(void) {
+       int k = sizeof( (int[]) { 1, 2, 3 } ) / sizeof(int);
+
+       if(k != 3)
+               return 1;
+
+       return 0;
+}