summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20081118_0.C
blob: f11c76b67f5b4c4e7eca142f18a98dcde1f442ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-lto-do link } */
/* { dg-lto-options {{-fPIC -flto -flto-partition=1to1 -r -nostdlib}} } */

/* We used to ICE because of dangling pointers.  */

class object
{
public:
  virtual ~object() {}
};

class foo : public object
{
  virtual int method(void);
};

int
foo::method(void)
{
}