1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dom3" } */
11 extern void foo (int, int, int);
14 f (struct x
*p
, unsigned int n
)
16 foo (p
->a
[n
], p
->c
[n
], p
->b
[n
]);
19 foo (p
->a
[n
], p
->c
[n
], p
->b
[n
]);
21 foo (p
->b
[n
], p
->a
[n
], p
->c
[n
]);
25 /* { dg-final { scan-tree-dump-times "\\* 4;" 1 "dom3" { target { int32 } } } } */
26 /* { dg-final { scan-tree-dump-times "\\* 2;" 1 "dom3" { target { int16 } } } } */
27 /* { dg-final { scan-tree-dump-times "p_\\d\+\\(D\\) \\+ \[^\r\n\]*_\\d\+" 1 "dom3" } } */
28 /* { dg-final { scan-tree-dump-times "MEM *<int>? *\\\[\\(struct x \\*\\)\[^\r\n\]*_\\d\+" 9 "dom3" } } */