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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [array1.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// Test that completing an array declared with a typedef doesn't change
2
// the typedef.
3
 
4
// { dg-do run }
5
 
6
typedef int iArr[];
7
 
8
const iArr array4={
9
  1, 2, 3, 4
10
};
11
 
12
const iArr array3={
13
  1, 2, 3
14
};
15
 
16
const iArr array5={
17
  1, 2, 3, 4, 5
18
};
19
 
20
int main()
21
{
22
  if (sizeof (array4)/sizeof (array4[0]) != 4
23
      || sizeof (array3)/sizeof (array3[0]) != 3
24
      || sizeof (array5)/sizeof (array5[0]) != 5)
25
    return 1;
26
}

powered by: WebSVN 2.1.0

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