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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr22061-4.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
void
2
bar (int N)
3
{
4
  void foo (int a[2][N++]) {}
5
  int a[2][N];
6
  foo (a);
7
  int b[2][N];
8
  foo (b);
9
  if (sizeof (a) != sizeof (int) * 2 * 1)
10
    abort ();
11
  if (sizeof (b) != sizeof (int) * 2 * 2)
12
    abort ();
13
  if (N != 3)
14
    abort ();
15
}
16
 
17
int
18
main (void)
19
{
20
  bar (1);
21
  exit (0);
22
}

powered by: WebSVN 2.1.0

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