summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr48973-2.c
blob: a64d4918e4b4c63c10594add3e7517411717b69c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR middle-end/48973 */

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

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