diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2021-04-17 16:05:34 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2021-04-17 16:05:34 +0200 |
| commit | e19144ebc795f522a271763b0384610da792bd1a (patch) | |
| tree | f9d9418332d8fb54d993bd295d3d6ceba8c44d80 /validation/memops/kill-dead-store-parent0.c | |
| parent | 038c1f95e46b9ce6191f191b90b8ef2655f45c84 (diff) | |
| parent | 23109ddefaadf1a476ea47d123994e5f073f701e (diff) | |
| download | sparse-dev-e19144ebc795f522a271763b0384610da792bd1a.tar.gz | |
Merge branch 'deadstore'
* memops: kill more dead stores
Diffstat (limited to 'validation/memops/kill-dead-store-parent0.c')
| -rw-r--r-- | validation/memops/kill-dead-store-parent0.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/validation/memops/kill-dead-store-parent0.c b/validation/memops/kill-dead-store-parent0.c new file mode 100644 index 00000000..c1b2466c --- /dev/null +++ b/validation/memops/kill-dead-store-parent0.c @@ -0,0 +1,14 @@ +void foo(int *ptr, int p) +{ + if (p) + *ptr = 1; + *ptr = 0; +} + +/* + * check-name: kill-dead-store-parent0 + * check-command: test-linearize -Wno-decl $file + * + * check-output-ignore + * check-output-pattern(1): store + */ |
