PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / alias-36.c
blob61b601a229eb1f5f6cf075cde86dda8c29f84c95
1 /* PR tree-optimization/80934 - bzero should be assumed not to escape
2 pointer argument
3 { dg-do compile }
4 { dg-options "-O2 -fdump-tree-alias" } */
6 void foobar (void);
8 void f (void);
10 void g (void)
12 char d[32];
13 __builtin_memset (d, 0, sizeof d);
14 f ();
15 if (*d != 0)
16 foobar ();
19 void h (void)
21 char d[32];
22 __builtin_bzero (d, sizeof d);
23 f ();
24 if (*d != 0)
25 foobar ();
28 /* { dg-final { scan-tree-dump-not "memset|foobar|bzero" "alias" } } */