1 /* { dg-do compile } */ 2 3 /* We ICEd with type-checking enabled. */ 4 5 typedef struct { int i; } snd_pcm_info_t; 6 typedef struct { snd_pcm_info_t info; } snd_pcm_shm_ctrl_t; 7 void snd_pcm_info(snd_pcm_info_t *); pcm_shm_cmd(volatile snd_pcm_shm_ctrl_t * ctrl)8int pcm_shm_cmd(volatile snd_pcm_shm_ctrl_t *ctrl) 9 { 10 snd_pcm_info((snd_pcm_info_t *) &ctrl->info); 11 } 12 13