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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [init/] [array11.C] - Blame information for rev 856

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR 11665
2
   Orgin: jwhite@cse.unl.edu
3
   The problem was in initializer_constant_valid_p,
4
   "for a CONSTRUCTOR, only the last element
5
   of the CONSTRUCTOR was being checked"
6
   (from the email of the patch which fixed this).
7
   This used to ICE because GCC thought gdt_table was a
8
   constant value when it is not.  */
9
 
10
int x;
11
 
12
typedef __SIZE_TYPE__ size_t;
13
 
14
struct gdt
15
{
16
size_t a,b,c,d,e,f;
17
};
18
void f()
19
{
20
struct gdt gdt_table[2]=
21
{
22
    {
23
                0,
24
                ( (((size_t)(&x))<<(24))&(-1<<(8)) ),
25
    },
26
};
27
}
28
 

powered by: WebSVN 2.1.0

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