1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
9 int *p
= __builtin_malloc (n
);
15 __builtin_memset (p
, 0, n
);
22 float *p
= __builtin_calloc (8, 4);
23 return __builtin_memset (p
, 0, 24); // not 32
26 /* { dg-final { scan-tree-dump-times "calloc" 2 "optimized" } } */
27 /* { dg-final { scan-tree-dump-not "malloc" "optimized" } } */
28 /* { dg-final { scan-tree-dump-not "memset" "optimized" } } */