projects
/
ccan
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fdpass: avoid memory leak in example.
[ccan]
/
ccan
/
tcon
/
test
/
compile_fail.c
1
#include <ccan/tcon/tcon.h>
2
#include <stdlib.h>
3
4
struct container {
5
void *p;
6
};
7
8
struct int_container {
9
struct container raw;
10
TCON(int *canary);
11
};
12
13
int main(void)
14
{
15
struct int_container icon;
16
#ifdef FAIL
17
char *
18
#else
19
int *
20
#endif
21
x = NULL;
22
23
tcon_check(&icon, canary, x)->raw.p = x;
24
return 0;
25
}