xref: /freebsd/contrib/netbsd-tests/usr.bin/xlint/lint1/d_cvt_in_ternary.c (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
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