libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / dump-5.c
blob6807b5e9ef4fdee5e1e3423e808481981a174209
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" } */
6 typedef char A8[8];
8 unsigned f (A8 *pa)
10 return __builtin_strlen (&(*pa)[2]);
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" } } */