xref: /freebsd/contrib/netbsd-tests/usr.bin/xlint/lint1/d_cvt_in_ternary.c (revision 107af8f2edd60bb40ee6452f8a1997c9b4d59ba3)
1 /* CVT node handling in ?: operator */
2 typedef unsigned long int size_t;
3 struct filecore_direntry {
4 	unsigned len:32;
5 };
6 int
7 main(void)
8 {
9 	struct filecore_direntry dirent = { 0 };
10 	size_t  uio_resid = 0;
11 	size_t bytelen = (((dirent.len)<(uio_resid))?(dirent.len):(uio_resid));
12 	return bytelen;
13 }
14