X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftcon%2Ftest%2Fcompile_fail-tcon_cast.c;h=3df0333ca047422eef3d83de1ea3b68063ab3df5;hb=12ab811533406e22b78ce8b227474f1056375ae4;hp=f80ef42c091dde6ff817ba8dc6ea10ce9c9b3fb0;hpb=5c451bbbed80e3bcb1f6be4301026ece01ab1309;p=ccan diff --git a/ccan/tcon/test/compile_fail-tcon_cast.c b/ccan/tcon/test/compile_fail-tcon_cast.c index f80ef42c..3df0333c 100644 --- a/ccan/tcon/test/compile_fail-tcon_cast.c +++ b/ccan/tcon/test/compile_fail-tcon_cast.c @@ -25,5 +25,5 @@ int main(int argc, char *argv[]) icon.raw.p = NULL; x = tcon_cast(&icon, tc1, icon.raw.p); - return 0; + return x != NULL ? 0 : 1; }