diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-09-11 12:14:13 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-11-13 14:16:51 +0100 |
| commit | 2eb0abcbe35db596d43adbb862736db749a0e2e6 (patch) | |
| tree | 02bcc78b485839a9614805ed080766a2b7ade5a4 /validation/optim | |
| parent | dad2d3a77f19176d1ad2f5ece27ce69c1827881b (diff) | |
| download | sparse-dev-2eb0abcbe35db596d43adbb862736db749a0e2e6.tar.gz | |
add test case for missing conversion to select
This may seems as an missing optimization problem but in truth,
the root cause is a problem with SSA conversion.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim')
| -rw-r--r-- | validation/optim/missing-select.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/validation/optim/missing-select.c b/validation/optim/missing-select.c new file mode 100644 index 00000000..4796e058 --- /dev/null +++ b/validation/optim/missing-select.c @@ -0,0 +1,24 @@ +static int foo(int **g) +{ + int i = 1; + int *a[2]; + int **p; + + a[1] = &i; + if (g) + p = g; + else + p = &a[0]; + if (!g) + **p = 0; + return i; +} + +/* + * check-name: missing-select + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-ignore + * check-output-contains: select\\. + */ |
