repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
analyzer
/
attr-malloc-5.c
blob
7ff4e57fcfbfd4f7d79efbf095b385832db2ca9b
1
/* Example of extra argument to "malloc" attribute. */
2
3
struct
foo
;
4
extern
void
foo_release
(
int
,
struct
foo
*);
5
extern
struct
foo
*
foo_acquire
(
void
)
6
__attribute__
((
malloc
(
foo_release
,
2
)));
7
8
void
test_1
(
void
)
9
{
10
struct
foo
*
p
=
foo_acquire
();
11
foo_release
(
0
,
p
);
12
}