Add regression test for cvt nodes in ?: expression

This commit is contained in:
christos 2003-05-30 13:39:39 +00:00
parent fb6b32b11b
commit 0eba3d0e7c
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
/* CVT node handling in ?: operator */
typedef unsigned long int size_t;
struct filecore_direntry {
unsigned len:32;
};
int
main(void)
{
struct filecore_direntry dirent = { 0 };
size_t uio_resid = 0;
size_t bytelen = (((dirent.len)<(uio_resid))?(dirent.len):(uio_resid));
return bytelen;
}