gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-46.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-dse1" } */ |
| 3 | |
| 4 | int a; |
| 5 | static long b, d; |
| 6 | short c; |
| 7 | void foo(); |
| 8 | char e(int **f) { |
| 9 | **f = 0; |
| 10 | if (a) { |
| 11 | unsigned long *g = &b; |
| 12 | unsigned long **h = &g; |
| 13 | for (; d;) { |
| 14 | foo(); |
| 15 | for (; c;) { |
| 16 | unsigned long ***i = &h; |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 | return 1; |
| 21 | } |
| 22 | |
| 23 | /* { dg-final { scan-tree-dump-not "&b" "dse1" } } */ |