diff options
Diffstat (limited to 'validation/optim/mask1-setne0.c')
| -rw-r--r-- | validation/optim/mask1-setne0.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/validation/optim/mask1-setne0.c b/validation/optim/mask1-setne0.c new file mode 100644 index 00000000..8810189c --- /dev/null +++ b/validation/optim/mask1-setne0.c @@ -0,0 +1,29 @@ +struct s { + unsigned i:1; +}; + +int foo(struct s x) +{ + unsigned int i = x.i; + + if (i == 0) + return 1; + else if (i == 1) + return 1; + return 0; +} + +/* + * check-name: mask1-setne0 + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-start +foo: +.L0: + <entry-point> + ret.32 $1 + + + * check-output-end + */ |
