view gcc/testsuite/gcc.c-torture/compile/20090107-1.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-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;
}