aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr33692.c
blob: 08ee332ddfbcce8ecec91aa669678ac716684bc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */

/* We ICEd with type-checking enabled.  */

typedef struct { int i; } snd_pcm_info_t;
typedef struct { snd_pcm_info_t info; } snd_pcm_shm_ctrl_t;
void snd_pcm_info(snd_pcm_info_t *);
int pcm_shm_cmd(volatile snd_pcm_shm_ctrl_t *ctrl)
{
  snd_pcm_info((snd_pcm_info_t *) &ctrl->info);
}