diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-02-10 12:03:08 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-02-10 12:04:05 +0100 |
| commit | dd566d02ba1168b22281fb00b312fe09e6f09813 (patch) | |
| tree | 862f0f3745eaff96337168fc43daaaf2e463da1e /validation/mem2reg | |
| parent | a695e053a24db2f092b76c7394ca57899b43e345 (diff) | |
| download | sparse-dev-dd566d02ba1168b22281fb00b312fe09e6f09813.tar.gz | |
add testcase of dead dominator
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/mem2reg')
| -rw-r--r-- | validation/mem2reg/load-dead.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/validation/mem2reg/load-dead.c b/validation/mem2reg/load-dead.c new file mode 100644 index 00000000..19ac4e5e --- /dev/null +++ b/validation/mem2reg/load-dead.c @@ -0,0 +1,19 @@ +int fun(int); + +static inline int fake(void) +{ +} + +static void foo(int a) +{ + 0 || fun((a, fake(), a)); +} + +/* + * check-name: load-dead + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-ignore + * check-output-excludes: VOID + */ |
