Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20081118_0.C
blobc1f9dfc97a48f203ac1160c924c0042cf5f898a1
1 /* { dg-lto-do link } */
2 /* { dg-require-effective-target fpic } */
3 /* { dg-lto-options {{-fPIC -flto -flto-partition=1to1 -r -nostdlib}} } */
5 /* We used to ICE because of dangling pointers.  */
7 class object
9 public:
10   virtual ~object() {}
13 class foo : public object
15   virtual int method(void);
18 int
19 foo::method(void)
21   return 0;