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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr22071.C] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
 
4
/* This code ends up taking the address of part of the structure that is padding,
5
   and because there is no real field there, the structure alias analyzer would
6
   abort.  */
7
struct empty_class {};
8
struct class1 : empty_class
9
{
10
  class1() {}
11
  empty_class value_;
12
};
13
struct lambda : class1 { };
14
lambda _1;

powered by: WebSVN 2.1.0

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