cp_error050: sizeof a compound literal.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sun, 26 Oct 2008 17:50:49 +0000 (17:50 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 26 Oct 2008 17:50:49 +0000 (17:50 +0000)
[r23211]

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

diff --git a/parsetest/cp_error050.c b/parsetest/cp_error050.c
new file mode 100644 (file)
index 0000000..dc1e61e
--- /dev/null
@@ -0,0 +1,5 @@
+int main(void)
+{
+       // This is sizeof of a compound literal, not sizeof a type followed by garbage
+       return !sizeof(int[3]){ 0, 1, 2 };
+}