/* $NetBSD: expr_cast.c,v 1.4 2023/07/07 19:45:22 rillig Exp $ */ # 3 "expr_cast.c" /* * Tests for value conversion using a cast-expression. * * K&R C does not mention any restrictions on the target type. * C90 requires both the source type and the target type to be scalar. * * GCC allows casting to a struct type but there is no documentation about * it at https://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html. See * c-typeck.c, function build_c_cast, RECORD_OR_UNION_TYPE_P. */ /* lint1-flags: -Sw -X 351 */ struct S { int member; }; struct S cast(void) { struct S { double incompatible; } local = { 0.0 }; /* expect+2: error: invalid cast from 'struct S' to 'struct S' [147] */ /* expect+1: warning: function 'cast' expects to return value [214] */ return (struct S)local; } lockdoc-9.3-vfs'>lockdoc-9.3-vfs NetBSD fork for lockdoc analysismerlin@scholz.ruhr
summaryrefslogtreecommitdiff
path: root/sys/fs/udf/udf_mount.h
AgeCommit message (Expand)Author
2019-10-16Switch files copyright Reinoud Zandijk from BSD 4 clause to BSD 2 clause.maya
2006-02-02Fix header re-inclusion protection defines to a less generic namingreinoud
2006-02-02Fix $NetBSD$ tags. (sorry)reinoud
2006-02-02Initial import of a UDF file system implementation for NetBSD.reinoud