projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd2d090
)
tcon: add testcase for const members in tcon_container_of()
author
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 2 Jun 2016 02:00:53 +0000
(11:30 +0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 2 Jun 2016 02:00:53 +0000
(11:30 +0930)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tcon/test/compile_ok-container.c
patch
|
blob
|
history
diff --git
a/ccan/tcon/test/compile_ok-container.c
b/ccan/tcon/test/compile_ok-container.c
index 9493c4dcc855ab9c375e445d1ea15605bf43407d..a8347f7aa8f5c302483800b671b8050cd8e12642 100644
(file)
--- a/
ccan/tcon/test/compile_ok-container.c
+++ b/
ccan/tcon/test/compile_ok-container.c
@@
-19,13
+19,13
@@
struct info_base {
struct info_tcon {
struct info_base base;
- TCON(TCON_CONTAINER(
concan
, struct outer, inner));
+ TCON(TCON_CONTAINER(
fi
, struct outer, inner));
};
int main(int argc, char *argv[])
{
/* Const should work! */
- const struct outer *ovar;
+ const struct outer *ovar
= NULL
;
struct outer *o;
struct info_tcon info;