diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-08-03 18:46:39 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-08-04 22:21:41 +0200 |
| commit | 0e872d2941a69295e9c77c7c7d35a36daf273a59 (patch) | |
| tree | c12c8d724816ca01a808a043d941ceb1e9c9a3d2 /validation/optim/trunc-setne0.c | |
| parent | 8a852bf56850a0135e0e50cbc141fafce910d258 (diff) | |
| download | sparse-dev-0e872d2941a69295e9c77c7c7d35a36daf273a59.tar.gz | |
add testcase for linearize_logical()
Add some tests in preparation of some bug-fixing and
simplification in linearize_logical()linearize_conditional().
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim/trunc-setne0.c')
| -rw-r--r-- | validation/optim/trunc-setne0.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/validation/optim/trunc-setne0.c b/validation/optim/trunc-setne0.c new file mode 100644 index 00000000..16f99a88 --- /dev/null +++ b/validation/optim/trunc-setne0.c @@ -0,0 +1,21 @@ +struct s { + unsigned int u:1; +}; + +unsigned int foo(struct s x) +{ + if (x.u) + return 1; + else + return 0; +} + +/* + * check-name: trunc-setne0 + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-ignore + * check-output-contains: and\\. + * check-output-excludes: trunc\\. + */ |
