diff options
Diffstat (limited to 'validation/memops/kill-dead-store-parent2.c')
-rw-r--r-- | validation/memops/kill-dead-store-parent2.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/validation/memops/kill-dead-store-parent2.c b/validation/memops/kill-dead-store-parent2.c new file mode 100644 index 00000000..b563fd31 --- /dev/null +++ b/validation/memops/kill-dead-store-parent2.c @@ -0,0 +1,26 @@ +int ladder02(int *ptr, int p, int x) +{ + *ptr = x++; + if (p) + goto l11; + else + goto l12; +l11: + *ptr = x++; + goto l20; +l12: + *ptr = x++; + goto l20; +l20: + *ptr = x++; + return *ptr; +} + +/* + * check-name: kill-dead-store-parent2 + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-ignore + * check-output-pattern(1): store + */ |