summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr49123.c
blob: 2f1f7935d3cb985575a39b2ccc96516b85230155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR lto/49123 */

extern void abort (void);
static struct S { int f : 1; } s;
static int v = -1;

int
main ()
{
  s.f = v < 0;
  if ((unsigned int) s.f != -1U)
    abort ();
  return 0;
}