OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr27184.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Copyright 2006 Free Software Foundation */
2
 
3
/* Make sure a and a1 alias each other.
4
   Incomplete array types used to not be unified, which broke aliasing.  */
5
 
6
/* { dg-do run } */
7
 
8
typedef long atype[];
9
typedef long atype1[];
10
int NumSift (atype *a, atype1 *a1)
11
{
12
  (*a)[0] = 0;
13
  (*a1)[0] = 1;
14
  return (*a)[0];
15
}
16
int main(void)
17
{
18
  long a[2];
19
  if (!NumSift(&a, &a))
20
    __builtin_abort ();
21
  return 0;
22
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.