diff options
author | Christopher Li <sparse@chrisli.org> | 2013-02-21 17:03:01 -0800 |
---|---|---|
committer | Christopher Li <sparse@chrisli.org> | 2013-02-21 17:03:01 -0800 |
commit | 609bc05d78a9cacc7f3e10d12164d6d3b0e8d712 (patch) | |
tree | fa1bd015d59ba4471330d0cc61671de5d8f13354 | |
parent | 90b742e898709a3911a6eb278467117c18bcd3ea (diff) | |
download | sparse-609bc05d78a9cacc7f3e10d12164d6d3b0e8d712.tar.gz |
Clean up some test case error.
The forward declare test is known to give warnings.
Just make it matching the error output.
Same for check_byte_count-ice.c
Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r-- | validation/check_byte_count-ice.c | 7 | ||||
-rw-r--r-- | validation/static-forward-decl.c | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/validation/check_byte_count-ice.c b/validation/check_byte_count-ice.c index 58b98ce5..7b85b963 100644 --- a/validation/check_byte_count-ice.c +++ b/validation/check_byte_count-ice.c @@ -8,7 +8,12 @@ static void foo(void *a) * check-name: Segfault in check_byte_count after syntax error * * check-error-start -check_byte_count-ice.c:5:25: error: Bad character constant +check_byte_count-ice.c:6:0: warning: Newline in string or character constant +check_byte_count-ice.c:5:23: warning: multi-character character constant +check_byte_count-ice.c:6:1: error: Expected ) in function call +check_byte_count-ice.c:6:1: error: got } +builtin:0:0: error: Expected } at end of function +builtin:0:0: error: got end-of-input check_byte_count-ice.c:5:15: error: not enough arguments for function memset * check-error-end */ diff --git a/validation/static-forward-decl.c b/validation/static-forward-decl.c index 47e46dcd..daad1ecb 100644 --- a/validation/static-forward-decl.c +++ b/validation/static-forward-decl.c @@ -6,5 +6,8 @@ int f(void) } /* * check-name: static forward declaration - * check-known-to-fail + * + * check-error-start +static-forward-decl.c:3:5: warning: symbol 'f' was not declared. Should it be static? + * check-error-end */ |