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