LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / pr49307.c
blobe05659a8e161da13f9348f0560ff686f39312f95
1 /* PR target/49307 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fpic -fstack-protector" } */
4 /* { dg-require-effective-target fpic } */
5 /* { dg-require-effective-target fstack_protector } */
7 extern void bar (char **pp, void *vp);
8 extern void free (void *p);
10 int
11 foo (void)
13 char *p;
14 char fext[128];
16 p = fext;
17 bar (&p, (void *)0);
18 if (p)
19 free (p);
20 return 0;