diff options
author | 2009-03-09 07:10:48 +0000 | |
---|---|---|
committer | 2009-07-17 23:06:23 +0000 | |
commit | 09e5867415798fb927b9da830b7dbe908d941596 (patch) | |
tree | e949a198b62c2b8b3f132ec5042647346267d2ff /validation/nested-declarator.c | |
parent | Fix braino in which_kind() (diff) | |
download | sparse-09e5867415798fb927b9da830b7dbe908d941596.tar.gz sparse-09e5867415798fb927b9da830b7dbe908d941596.tar.bz2 sparse-09e5867415798fb927b9da830b7dbe908d941596.zip |
Sanitize direct_declarator logics
a) handling of nested declarator does not belong in the loop, for fsck sake
b) functions and arrays don't mix (and functions don't mix with functions)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'validation/nested-declarator.c')
-rw-r--r-- | validation/nested-declarator.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/validation/nested-declarator.c b/validation/nested-declarator.c index 62c4940..1efe20c 100644 --- a/validation/nested-declarator.c +++ b/validation/nested-declarator.c @@ -16,12 +16,14 @@ int j(int [2](*)); /* * check-name: nested declarator vs. parameters * check-error-start: -nested-declarator.c:11:29: warning: missing identifier in declaration -nested-declarator.c:13:16: error: Expected ) in function declarator -nested-declarator.c:13:16: error: got * -nested-declarator.c:14:19: error: Expected ) in function declarator -nested-declarator.c:14:19: error: got * -nested-declarator.c:15:15: error: Expected ) in function declarator -nested-declarator.c:15:15: error: got * +nested-declarator.c:11:23: warning: missing identifier in declaration +nested-declarator.c:11:23: error: Expected ; at the end of type declaration +nested-declarator.c:11:23: error: got ( +nested-declarator.c:13:15: error: Expected ; at the end of type declaration +nested-declarator.c:13:15: error: got ( +nested-declarator.c:14:18: error: Expected ) in function declarator +nested-declarator.c:14:18: error: got ( +nested-declarator.c:15:14: error: Expected ) in function declarator +nested-declarator.c:15:14: error: got ( * check-error-end: */ |