aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr10352-1.c
blob: babb9d45a2813a4fffdde7f8480317f7001dd2bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* this is another case where phiopt
   would create -signed1bit which is undefined. */
struct {
  int a:1;
} b;
int *c = (int *)&b, d;
int main() {
  d = c && (b.a = (d < 0) ^ 3);
  if (d != 1)
    __builtin_abort();
  return 0;
}