1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
6 int *p
= __builtin_malloc (sizeof (int) * 4);
8 __builtin_free (p
); // { dg-warning "\\\[-Wfree-nonheap-object" }
11 /* Undefined. We can't do anything here. */
13 /* { dg-final { scan-tree-dump-times "free" 1 "optimized" } } */
14 /* { dg-final { scan-tree-dump-times "malloc" 1 "optimized" } } */