[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr52445.c
blob6ab316bc1fb5c0730db8db868f442325ebd3e1e9
1 /* PR tree-optimization/52445 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -ftree-cselim -fdump-tree-cselim" } */
5 void
6 foo (char *buf, unsigned long len)
8 buf[0] = '\n';
9 if (len > 1)
10 buf[1] = '\0'; /* We can't cselim "optimize" this, while
11 buf[0] doesn't trap, buf[1] could. */
14 /* { dg-final { scan-tree-dump-not "cstore\." "cselim" } } */