projects
/
ccan
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tcon: Encode integer values into "type" canaries
[ccan]
/
ccan
/
tcon
/
test
/
compile_ok-void.c
diff --git
a/ccan/tcon/test/compile_ok-void.c
b/ccan/tcon/test/compile_ok-void.c
index 26b712f6b2485c3632d97d143bc44930ea9fb854..694a53b533d87db6478dda4557d77c2b206e1ad6 100644
(file)
--- a/
ccan/tcon/test/compile_ok-void.c
+++ b/
ccan/tcon/test/compile_ok-void.c
@@
-13,9
+13,15
@@
struct void_container {
int main(int argc, char *argv[])
{
struct void_container vcon;
int main(int argc, char *argv[])
{
struct void_container vcon;
+ TCON_WRAP(struct container, void *canary) vconw;
tcon_check(&vcon, canary, NULL)->raw.p = NULL;
tcon_check(&vcon, canary, argv[0])->raw.p = NULL;
tcon_check(&vcon, canary, main)->raw.p = NULL;
tcon_check(&vcon, canary, NULL)->raw.p = NULL;
tcon_check(&vcon, canary, argv[0])->raw.p = NULL;
tcon_check(&vcon, canary, main)->raw.p = NULL;
+
+ tcon_unwrap(tcon_check(&vconw, canary, NULL))->p = NULL;
+ tcon_unwrap(tcon_check(&vconw, canary, argv[0]))->p = NULL;
+ tcon_unwrap(tcon_check(&vconw, canary, main))->p = NULL;
+
return 0;
}
return 0;
}