From f217dd4e7d28ed6485f672aa029af8c309450a30 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sun, 26 Oct 2008 17:50:49 +0000 Subject: [PATCH] cp_error050: sizeof a compound literal. [r23211] --- parsetest/cp_error050.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 parsetest/cp_error050.c diff --git a/parsetest/cp_error050.c b/parsetest/cp_error050.c new file mode 100644 index 0000000..dc1e61e --- /dev/null +++ b/parsetest/cp_error050.c @@ -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 }; +} -- 2.20.1