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++.dg/] [tree-ssa/] [pr22071.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-options "-O2" } */
/* This code ends up taking the address of part of the structure that is padding,
/* This code ends up taking the address of part of the structure that is padding,
   and because there is no real field there, the structure alias analyzer would
   and because there is no real field there, the structure alias analyzer would
   abort.  */
   abort.  */
struct empty_class {};
struct empty_class {};
struct class1 : empty_class
struct class1 : empty_class
{
{
  class1() {}
  class1() {}
  empty_class value_;
  empty_class value_;
};
};
struct lambda : class1 { };
struct lambda : class1 { };
lambda _1;
lambda _1;
 
 

powered by: WebSVN 2.1.0

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