view gcc/testsuite/gcc.c-torture/compile/20090107-1.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
line wrap: on
line source

/* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */

/* Verify that we don't ICE by forming invalid addresses for unaligned
   doubleword loads (originally for PPC64).  */

struct a
{
 unsigned int x;
 unsigned short y;
} __attribute__((packed));

struct b {
 struct a rep;
 unsigned long long seq;
} __attribute__((packed));

struct c {
 int x;
 struct a a[5460];
 struct b b;
};

extern void use_ull(unsigned long long);
extern void f(struct c *i) {
  use_ull(i->b.seq);
  return;
}