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/] [anon-1.c] - Rev 318

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

/* Copyright (C) 2001 Free Software Foundation, Inc.  */
 
/* Source: Neil Booth, 4 Nov 2001, derived from PR 2820 - field lookup in
   nested anonymous entities was broken.  */
 
struct
{
  int x;
  struct
  {
    int a;
    union
    {
      int b;
    };
  };
} foo;
 
int
main(int argc, char *argv[])
{
  foo.b = 6;
  foo.a = 5;
 
  if (foo.b != 6)
    abort ();
 
  return 0;
}
 

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

powered by: WebSVN 2.1.0

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