libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr84859.c
blobeebc9201ebd5b978684bfcf5ed2b88acd2fdd191
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-cselim -Warray-bounds -fdump-tree-phiopt2" } */
4 void
5 h (const void *p, unsigned n)
7 unsigned char a[8];
8 if (n > sizeof a)
9 return;
11 for (; n > 0; n -= *a)
13 if (n > 255)
14 *a = 255;
15 else
16 *a = n;
18 __builtin_memcpy (a, p, *a); /* { dg-bogus "bounds" } */
22 /* { dg-final { scan-tree-dump "MIN_EXPR" "phiopt2" } } */