2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-63.c
blob39e8c08cef9bf8ce48558d185d7733941873a637
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1-stats" } */
4 int foo(char *x)
6 __builtin_memset (&x[1], 'c', 42);
7 return x[0] + x[1] + x[42] + x[43];
10 /* We should eliminate x[1] and x[42] and their conversions to int. */
11 /* { dg-final { scan-tree-dump "Eliminated: 4" "fre1" } } */