]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/dump-5.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / dump-5.c
CommitLineData
f325e752
MS
1/* PR middle-end/90694 - incorrect representation of ADDR_EXPR involving
2 a pointer to array
3 { dg-do compile }
4 { dg-options "-fdump-tree-original" } */
5
6typedef char A8[8];
7
8unsigned f (A8 *pa)
9{
10 return __builtin_strlen (&(*pa)[2]);
11}
12
13/* Veriy the expression is correct in the dump:
14 { dg-final { scan-tree-dump-not "\\\&\\\*pa\\\[2\\\]" "original" } }
15 { dg-final { scan-tree-dump "\\\&\\\(\\\*pa\\\)\\\[2\\\]" "original" } } */