OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / warn / Wstrict-aliasing-bogus-escape-2.C
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wstrict-aliasing" } */
3
4 #include<list>
5
6 struct A
7 {
8   virtual ~A();
9 };
10
11 A* foo();
12
13 void bar(std::list<int> x)
14 {
15   std::list<int> y = x;
16   if (*y.rbegin())
17     delete foo();
18 }
19