summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-vrp-7.c
blob: ff32fe3f060e760c577714e72d5a006ef5177e50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
vrp-7.c from the execute part of the gcc torture tests.
*/

#include <testfwk.h>

struct T
{
  int b : 1;
} t;

void foo (int f)
{
  t.b = (f & 0x10) ? 1 : 0;
}

void
testTortureExecute (void)
{
  foo (0x10);
  if (!t.b)
    ASSERT (0);
  return;
}