view gcc/testsuite/gcc.dg/torture/pr69170.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */

typedef long sha2_word_t;
typedef struct {
    sha2_word_t length_upper, length_lower;
    char buf[];
} hash_state;
int a;
hash_state b;
void fn1()
{
  a = 0;
  for (; a < 8; a++)
    b.buf[a + 1024 / 8] = b.length_upper >> (1 - a) * 5;
  a = 0;
  for (; a < 8; a++)
    b.buf[a + 1024 / 8 + 8] = b.length_lower >> (1 - a) * 5;
}