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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr15749-1.h] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Similar to c99-flex-array-3.c, but a system header so should not
2
   have diagnostics even with -pedantic-errors.  */
3
 
4
#pragma GCC system_header
5
 
6
struct flex { int a; int b[]; };
7
union rf1 { struct flex a; int b; };
8
union rf2 { int a; struct flex b; };
9
union rf3 { int a; union rf1 b; };
10
union rf4 { union rf2 a; int b; };
11
 
12
struct t0 { struct flex a; };
13
struct t1 { union rf1 a; };
14
struct t2 { union rf2 a; };
15
struct t3 { union rf3 a; };
16
struct t4 { union rf4 a; };
17
 
18
void f0 (struct flex[]);
19
void f1 (union rf1[]);
20
void f2 (union rf2[]);
21
void f3 (union rf3[]);
22
void f4 (union rf4[]);
23
 
24
struct flex a0[1];
25
union rf1 a1[1];
26
union rf2 a2[1];
27
union rf3 a3[1];
28
union rf4 a4[1];

powered by: WebSVN 2.1.0

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