diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2013-01-05 13:23:54 -0500 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-12 09:24:32 -0500 |
| commit | 15cfba61d99668e9c14782779766f48834490ead (patch) | |
| tree | 7cad991ebdef4f266bbd57efccc6ae762af0265c /validation | |
| parent | c8b02fc63037f6e6e0147fc65a67a7809ca5744e (diff) | |
| download | sparse-dev-15cfba61d99668e9c14782779766f48834490ead.tar.gz | |
massage handling of wide string literals/character constants in tokenizer
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/wide.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/validation/wide.c b/validation/wide.c new file mode 100644 index 00000000..847a680f --- /dev/null +++ b/validation/wide.c @@ -0,0 +1,9 @@ +static char c = L'\x41'; +static int n = 1/(0x41 - L'\x41'); +/* + * check-name: wide character constants + * + * check-error-start +wide.c:2:17: warning: division by zero + * check-error-end + */ |
