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

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