1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-vars-details" } */
10 inline OOf operator+(OOf op1, OOf op2)
13 f.value = op1.value + op2.value;
16 inline OOf operator*(OOf op1, OOf op2)
19 f.value = op1.value * op2.value;
22 inline OOf operator-(OOf op1, OOf op2)
25 f.value = op1.value - op2.value;
45 OOf d = test_func (a,b,c);
50 /* We should have removed the casts from pointers to references and caused SRA to happen. */
51 /* { dg-final { scan-tree-dump-times "link_error" 0 "vars"} } */
52 /* { dg-final { cleanup-tree-dump "vars" } } */