1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-vrp -std=c++11 -fno-strict-aliasing -fdump-tree-dom2" } */
6 virtual int Compare(void*, void*);
10 extern Field* the_field;
13 inline int doCmp(int this_row_offset, int field_idx) {
14 void *p = fptrs[field_idx] + this_row_offset * incs[field_idx];
15 return the_field->Compare(p,0);
21 for (; row_offset < NR; ++row_offset) {
23 bool is_different = false;
24 for (int j = 0; j < NKF ; ++j) {
25 int field_idx = idxs[j];
26 int cmp = doCmp(row_offset, field_idx);
27 fprintf (stderr, "cmp=%d\n",cmp);
36 fprintf (stderr, "Incorrect\n");
49 // The block ending with cmp == 0 should not be threaded. ie,
50 // there should be a single == 0 comparison in the dump file.
52 // { dg-final { scan-tree-dump-times "== 0" 1 "dom2" } }