summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/unit-1.C
blob: 49bc23136f4a6201bb6143596b1250db2af96c85 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O2 -Wuninitialized" } */

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