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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20030109-1.c] - Blame information for rev 301

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

Line No. Rev Author Line
1 297 jeremybenn
/* PR c/8032 */
2
/* Verify that an empty initializer inside a partial
3
   parent initializer doesn't confuse GCC.  */
4
 
5
struct X
6
{
7
  int a;
8
  int b;
9
  int z[];
10
};
11
 
12
struct X x = { .b = 40, .z = {} };
13
 
14
int main ()
15
{
16
  if (x.b != 40)
17
    abort ();
18
 
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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