gcc/testsuite/g++.dg/lto/pr89335_0.C
raw| 1 | // { dg-lto-do link } |
| 2 | // { dg-lto-options { {-O2 -flto -Wsuggest-final-methods}} } |
| 3 | // { dg-extra-ld-options "-r -nostdlib -flinker-output=nolto-rel" } |
| 4 | // { dg-require-linker-plugin "" } |
| 5 | |
| 6 | class Container |
| 7 | { |
| 8 | public: |
| 9 | virtual ~Container (); |
| 10 | }; |
| 11 | |
| 12 | class List : public Container |
| 13 | { |
| 14 | }; |
| 15 | |
| 16 | static List cache[256]; |
| 17 | |
| 18 | int main (void) |
| 19 | { |
| 20 | return 0; |
| 21 | } |