view gcc/testsuite/gcc.dg/torture/pr27184.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

/* Copyright 2006 Free Software Foundation */

/* Make sure a and a1 alias each other.
   Incomplete array types used to not be unified, which broke aliasing.  */

/* { dg-do run } */

typedef long atype[];
typedef long atype1[];
int NumSift (atype *a, atype1 *a1)
{
  (*a)[0] = 0;
  (*a1)[0] = 1;
  return (*a)[0];
}
int main(void)
{
  long a[2];
  if (!NumSift(&a, &a))
    __builtin_abort ();
  return 0;
}