aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr80101-1.c
blob: b670f429540ba56fec5fad94ea5e0acac6e71afb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-require-effective-target dfp_hw } */
/* { dg-options "-mdejagnu-cpu=power6 -mno-sched-epilog -Ofast" } */

/* Prior to resolving PR 80101, this test case resulted in an internal
   compiler error.  The role of this test program is to assure that
   dejagnu's "test for excess errors" does not find any.  */

int b;

void e ();

int c ()
{
  struct
  {
    int a[b];
  } d;
  if (d.a[0])
    e ();
}