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/] [warn/] [Wstrict-aliasing-bogus-escape-2.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wstrict-aliasing" } */
3
 
4
#include
5
 
6
struct A
7
{
8
  virtual ~A();
9
};
10
 
11
A* foo();
12
 
13
void bar(std::list x)
14
{
15
  std::list y = x;
16
  if (*y.rbegin())
17
    delete foo();
18
}
19
 

powered by: WebSVN 2.1.0

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