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. */
13 class foo : public object
15 virtual int method(void);