1 2 3 4 5 6 7 8 9 10 11 12
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-dse1" } */ void foo (int *p, int b) { if (b) *p = 1; *p = 0; } /* { dg-final { scan-tree-dump-times "\\\*p" 1 "dse1" } } */ /* { dg-final { cleanup-tree-dump "dse1" } } */