URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wstrict-aliasing-bogus-escape-2.C] - Rev 715
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */
/* { dg-options "-O2 -Wstrict-aliasing" } */
#include<list>
struct A
{
virtual ~A();
};
A* foo();
void bar(std::list<int> x)
{
std::list<int> y = x;
if (*y.rbegin())
delete foo();
}
Go to most recent revision | Compare with Previous | Blame | View Log