1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-dce3" } */
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 /* Remaining should be two loads. */
30 /* { dg-final { scan-tree-dump-times " = \[^\n\]*;" 2 "dce3" } } */