diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2021-03-17 00:00:23 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2021-03-19 23:56:44 +0100 |
| commit | 52f02114bad02a2a705ecc3fe5904ff449196f50 (patch) | |
| tree | 04558b308e2a11723b4c1f1e15723d1cd433d703 /validation/optim/bad-phisrc1a.c | |
| parent | 1bd9ba3272b269a43be02ee380576e77652a563a (diff) | |
| download | sparse-dev-52f02114bad02a2a705ecc3fe5904ff449196f50.tar.gz | |
add testcases to check if phi-sources from removed targets are removed too
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim/bad-phisrc1a.c')
| -rw-r--r-- | validation/optim/bad-phisrc1a.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/validation/optim/bad-phisrc1a.c b/validation/optim/bad-phisrc1a.c new file mode 100644 index 00000000..cf07573b --- /dev/null +++ b/validation/optim/bad-phisrc1a.c @@ -0,0 +1,24 @@ +int def(void); + +int fun4(struct xfrm_state *net, int cnt) +{ + int err = 0; + if (err) + goto out; + for (; net;) + err = def(); + if (cnt) +out: + return err; + return 0; +} + +/* + * check-name: bad-phisrc1a + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-ignore + * check-output-contains: select\\. + */ + |
