diff options
Diffstat (limited to 'validation/optim/and-or-bf0.c')
| -rw-r--r-- | validation/optim/and-or-bf0.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/validation/optim/and-or-bf0.c b/validation/optim/and-or-bf0.c new file mode 100644 index 00000000..a17ff82d --- /dev/null +++ b/validation/optim/and-or-bf0.c @@ -0,0 +1,25 @@ +struct s { + int f:3; +}; + +void foo(struct s *p, int a) +{ + p->f = 1; + p->f = a; +} + +void bar(struct s *p, int a) +{ + p->f = a; + p->f = 1; +} + +/* + * check-name: and-or-bf0 + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-ignore + * check-output-pattern(3): and\\. + * check-output-pattern(2): or\\. + */ |
