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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900519_07.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// g++ 1.37.1 bug 900519_07
3
 
4
// It is illegal to specify or to use array-of-reference types, yet g++
5
// allows them to be specified (in typedef statements and in declarations)
6
// and to be used (in declarations).
7
 
8
// keywords: reference types, array types
9
 
10
int i;
11
int j;
12
 
13
typedef int& int_ref;
14
typedef int_ref int_ref_array_type[2];          // { dg-error "" } missed
15
 
16
int& int_ref_array_obj0[2] = { i, j };            // { dg-error "" } missed
17
int_ref int_ref_array_obj1[2] = { i, j };       // { dg-error "" } missed

powered by: WebSVN 2.1.0

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