gcc/testsuite/gcc.dg/tree-ssa/vrp55.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-ethread-details -fdelete-null-pointer-checks" } */ |
| 3 | |
| 4 | void arf (void); |
| 5 | |
| 6 | void |
| 7 | fu (char *p, int x) |
| 8 | { |
| 9 | if (x) |
| 10 | *p = 69; |
| 11 | if (p) |
| 12 | arf (); |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-tree-dump-times "Registering jump thread" 1 "ethread" { target { ! keeps_null_pointer_checks } } } } */ |
| 16 | /* { dg-final { scan-tree-dump-times "Registering jump thread" 0 "ethread" { target { keeps_null_pointer_checks } } } } */ |
| 17 |