diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-08-12 21:04:03 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-08-12 21:05:50 +0200 |
| commit | fc064f991e3936dff22a986c5eec10484e27fa53 (patch) | |
| tree | f0eedc85511e4f64989e0a46976cad5bd22361b0 /validation | |
| parent | 65ba62230b88bcc2d570418b88f2dc0152822a36 (diff) | |
| parent | 5d038837ebeab6bf7da664487bfcc372baef5176 (diff) | |
| download | sparse-dev-fc064f991e3936dff22a986c5eec10484e27fa53.tar.gz | |
Merge branch 'fix-scalar'
* fouled types are scalars too (fix is_{scalar,integral}_type()
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/foul-scalar.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/validation/foul-scalar.c b/validation/foul-scalar.c new file mode 100644 index 00000000..8e053b96 --- /dev/null +++ b/validation/foul-scalar.c @@ -0,0 +1,13 @@ +#define __bitwise __attribute__((bitwise)) + +typedef unsigned short __bitwise __be16; + +static void foo(__be16 x) +{ + if (~x) + ; +} + +/* + * check-name: foul-scalar + */ |
