diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-03-27 02:54:08 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-03-27 14:55:10 +0200 |
| commit | 70d85a2b68efa8f3456ec2a9808605c512405aa0 (patch) | |
| tree | 91b5065ea3a621c1daaebabf958d646af4e9b99a /validation | |
| parent | 97ebb345943918a0688b62cbc9bf878de01ccba4 (diff) | |
| download | sparse-dev-70d85a2b68efa8f3456ec2a9808605c512405aa0.tar.gz | |
fix test for cast to bool on 32bit machines
The result implicitely depended on longs and/or pointers
being 64 bit or just bigger than ints.
Fix this by running the test with the -m64 flag.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/bool-cast-explicit.c | 2 | ||||
| -rw-r--r-- | validation/bool-cast-implicit.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/validation/bool-cast-explicit.c b/validation/bool-cast-explicit.c index 6f9c4d46..4e3c2b7c 100644 --- a/validation/bool-cast-explicit.c +++ b/validation/bool-cast-explicit.c @@ -16,7 +16,7 @@ static _Bool fres(le16 a) { return (_Bool)a; } /* * check-name: bool-cast-explicit - * check-command: test-linearize $file + * check-command: test-linearize -m64 $file * check-output-ignore * check-output-excludes: cast\\. * diff --git a/validation/bool-cast-implicit.c b/validation/bool-cast-implicit.c index 0e0e69a4..ee8b705b 100644 --- a/validation/bool-cast-implicit.c +++ b/validation/bool-cast-implicit.c @@ -16,7 +16,7 @@ static _Bool fres(le16 a) { return a; } /* * check-name: bool-cast-implicit - * check-command: test-linearize $file + * check-command: test-linearize -m64 $file * check-output-ignore * check-output-excludes: cast\\. * |
