diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2016-12-06 14:04:40 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-11-13 14:16:51 +0100 |
| commit | ee0b647dcda858ea81a505e4c4903078013a3d70 (patch) | |
| tree | 3cf4a1ea1db718ed5b6fb6ad1142e1af75fa5785 /validation/optim | |
| parent | fac99b8c7132db6e636766b35d662315b37d3b42 (diff) | |
| download | sparse-dev-ee0b647dcda858ea81a505e4c4903078013a3d70.tar.gz | |
add test cases for canonicalization of boolean expressions
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim')
| -rw-r--r-- | validation/optim/bool-neq0.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/validation/optim/bool-neq0.c b/validation/optim/bool-neq0.c new file mode 100644 index 00000000..d6ad7aec --- /dev/null +++ b/validation/optim/bool-neq0.c @@ -0,0 +1,12 @@ +int bneq0(int a) { return a != 0; } +int bnoteq0(int a) { return !(a == 0); } +int bnotnot(int a) { return !(!a); } + +/* + * check-name: bool-neq0 + * check-command: test-linearize -Wno-decl $file + * check-output-ignore + * + * check-output-excludes: seteq\\. + * check-output-contains: setne\\. + */ |
