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