summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20040331-1.c
blob: 4cef3d3297aaf105bed6e01f378a65805533d2e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do run } */
/* { dg-options "-O2 -fwrapv" } */

extern void abort (void);
extern void exit (int);

int
main (void)
{
  struct { int count: 2; } s = { -2 };
  while (s.count-- != -2)
    abort ();
  exit (0);
}