s3:smbd: change user_struct->vuid to uint64_t
[Samba/gebeck_regimport.git] / lib / ccan / typesafe_cb / test / compile_ok-typesafe_cb_cast.c
blobb7f21dc094677cef65b3205c656e9376848aa395
1 #include <ccan/typesafe_cb/typesafe_cb.h>
2 #include <stdlib.h>
4 struct foo {
5 int x;
6 };
8 struct bar {
9 int x;
12 struct baz {
13 int x;
16 struct any {
17 int x;
20 static void take_any(struct any *any)
24 int main(int argc, char *argv[])
26 /* Otherwise we get unused warnings for these. */
27 struct foo *foo = NULL;
28 struct bar *bar = NULL;
29 struct baz *baz = NULL;
31 take_any(typesafe_cb_cast3(struct any *,
32 struct foo *, struct bar *, struct baz *,
33 foo));
34 take_any(typesafe_cb_cast3(struct any *,
35 struct foo *, struct bar *, struct baz *,
36 bar));
37 take_any(typesafe_cb_cast3(struct any *,
38 struct foo *, struct bar *, struct baz *,
39 baz));
40 return 0;