summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr33692.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr33692.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr33692.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr33692.c b/gcc/testsuite/gcc.dg/pr33692.c
new file mode 100644
index 000000000..08ee332dd
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr33692.c
@@ -0,0 +1,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);
+}
+