libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr83648.c
blobd3dd12da46c8abc4d6325a6054f96f9b009d7e73
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-local-pure-const-details -fdelete-null-pointer-checks" } */
3 /* { dg-skip-if "" keeps_null_pointer_checks } */
5 void *g(unsigned n)
7 return n ? __builtin_malloc (n) : 0;
10 void *h()
12 return 0;
15 /* { dg-final { scan-tree-dump "Function found to be malloc: g" "local-pure-const1" } } */
16 /* { dg-final { scan-tree-dump-not "Function found to be malloc: h" "local-pure-const1" } } */