aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorJosh Triplett <josh@kernel.org>2007-08-02 08:55:27 -0700
committerJosh Triplett <josh@kernel.org>2007-08-02 08:55:27 -0700
commit8ec193a995c2cc4b16a2051ebe96f495d8a87e05 (patch)
treef4bfcff3b5e03a82dab26ea47e92af8f11178d9b /validation
parent0d4adf3564521f412a90b6267fe5e245d2a8258c (diff)
downloadsparse-dev-8ec193a995c2cc4b16a2051ebe96f495d8a87e05.tar.gz
Add another test case to validation/comma.c
Signed-off-by: Josh Triplett <josh@kernel.org>
Diffstat (limited to 'validation')
-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