diff options
| author | Josh Triplett <josh@kernel.org> | 2007-08-02 08:55:27 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@kernel.org> | 2007-08-02 08:55:27 -0700 |
| commit | 8ec193a995c2cc4b16a2051ebe96f495d8a87e05 (patch) | |
| tree | f4bfcff3b5e03a82dab26ea47e92af8f11178d9b | |
| parent | 0d4adf3564521f412a90b6267fe5e245d2a8258c (diff) | |
| download | sparse-dev-8ec193a995c2cc4b16a2051ebe96f495d8a87e05.tar.gz | |
Add another test case to validation/comma.c
Signed-off-by: Josh Triplett <josh@kernel.org>
| -rw-r--r-- | validation/comma.c | 6 |
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 |
