Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / attr-malloc-5.c
blob7ff4e57fcfbfd4f7d79efbf095b385832db2ca9b
1 /* Example of extra argument to "malloc" attribute. */
3 struct foo;
4 extern void foo_release (int, struct foo *);
5 extern struct foo *foo_acquire (void)
6 __attribute__ ((malloc (foo_release, 2)));
8 void test_1 (void)
10 struct foo *p = foo_acquire ();
11 foo_release (0, p);