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