diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-10-09 17:28:36 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-10-09 17:28:36 +0200 |
| commit | 26f670cfb6941221acd19b5ed542a6bba60e963c (patch) | |
| tree | c351b6144333757f1e8e76cac529a07213713e92 /validation | |
| parent | b5d46df743be728431fe444008da2c6902cca872 (diff) | |
| parent | 56b9d0afc2dc70649d157865bf73c78f96621255 (diff) | |
| download | sparse-dev-26f670cfb6941221acd19b5ed542a6bba60e963c.tar.gz | |
Merge branch 'usual-conv'
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/linear/bool-cast-lp32.c | 1 | ||||
| -rw-r--r-- | validation/usual-conv-lp32.c | 11 |
2 files changed, 11 insertions, 1 deletions
diff --git a/validation/linear/bool-cast-lp32.c b/validation/linear/bool-cast-lp32.c index 44a650f4..7aab31dd 100644 --- a/validation/linear/bool-cast-lp32.c +++ b/validation/linear/bool-cast-lp32.c @@ -12,7 +12,6 @@ static _Bool ffun_e(void) { return (_Bool)ffun; } /* * check-name: bool-cast-pointer * check-command: test-linearize -m32 -fdump-ir $file - * check-known-to-fail * * check-output-ignore * check-output-excludes: ptrtu\\. diff --git a/validation/usual-conv-lp32.c b/validation/usual-conv-lp32.c new file mode 100644 index 00000000..7f91288e --- /dev/null +++ b/validation/usual-conv-lp32.c @@ -0,0 +1,11 @@ +extern long l; +extern unsigned int u; + +#if __SIZEOF_LONG__ == __SIZEOF_INT__ +_Static_assert([typeof(l + u)] == [unsigned long], "ulong"); +#endif + +/* + * check-name: usual-conversions + * check-command: sparse -m32 $file + */ |
