aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--validation/comma.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/validation/comma.c b/validation/comma.c
index 6fe496ce..374948ef 100644
--- a/validation/comma.c
+++ b/validation/comma.c
@@ -1,5 +1,11 @@
static char a[sizeof(char *) + 1];
static char b[1/(sizeof(a) - sizeof(0,a))];
+static void f(void)
+{
+ int c[42];
+ typeof((void)0,c) d;
+ d = c;
+}
/*
* check-name: Comma and array decay
* check-description: arguments of comma should degenerate