Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/dump-5.c

raw
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
6 typedef char A8[8];
7
8 unsigned 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" } } */