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