1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-dce2" } */
4 /* Verify that we can eliminate the useless conversions to/from
5 const qualified pointer types
7 D.20003_4 = this_2->data_m;
9 D.20005_6 = this_5->value;
10 copyprop should propagate o_1 and D.20003_4 to the loads of data_m
11 and value. dce removes all traces of this. */
14 int get() const { return value; }
19 int operator[](int i) const { return data_m->get(); }
28 /* { dg-final { scan-tree-dump-not ".* = \[^>;\]*;" "dce2" { xfail *-*-* } } } */
29 /* { dg-final { cleanup-tree-dump "dce2" } } */