Closed Machiry closed 4 years ago
I don't see a failure on this snippet.
Are you using Mac? Can you try on pldev2?
Can you try with this?
typedef union
{
union wait *__uptr;
int *__iptr;
} __WAIT_STATUS __attribute__ ((__transparent_union__));
union wait
{
int w_status;
struct
{
unsigned int __w_termsig:7;
unsigned int __w_coredump:1;
unsigned int __w_retcode:8;
unsigned int:16;
} __wait_terminated;
struct
{
unsigned int __w_stopval:8;
unsigned int __w_stopsig:8;
unsigned int:16;
} __wait_stopped;
};
extern int wait (__WAIT_STATUS __stat_loc);
struct vsf_sysutil_wait_retval
{
int syscall_retval;
int exit_status;
};
struct vsf_sysutil_wait_retval vsf_sysutil_wait(void) {
struct vsf_sysutil_wait_retval retval;
int sys_ret = wait(&retval.exit_status);
return retval;
}
Consider the following code:
Trying to convert the above file leads to the following exception:
The init expression that causes the failure is: