summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/uninit-I-O0.c
blob: 655f5489279410f4e035d5fa065917f32a393a10 (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */
/* { dg-options "-Wuninitialized" } */

int sys_msgctl (void)
{
  struct { int mode; } setbuf;  /* { dg-warning "'setbuf\.mode' is used" {} { xfail *-*-* } } */
  return setbuf.mode;
}