Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / attr-const-2.c
blobab79514acf8613e9fe787c9e17baf3653936d432
1 extern int const_p (int) __attribute__((const));
2 extern void do_stuff (void);
4 void test (int a)
6 void *p;
7 if (const_p (a))
9 p = __builtin_malloc (1024);
10 if (!p)
11 return;
13 do_stuff ();
14 if (const_p (a))
15 __builtin_free (p); /* { dg-bogus "uninit" } */