blob: 95bf4b3b0cbce79c71b0a44c9b7478169faac740 [file] [log] [blame]
// { dg-lto-do link }
// { dg-lto-options { {-O2 -flto -Wsuggest-final-methods}} }
// { dg-extra-ld-options "-r -nostdlib -flinker-output=nolto-rel" }
// { dg-require-linker-plugin "" }
class Container
{
public:
virtual ~Container ();
};
class List : public Container // { dg-lto-message "final would enable devirtualization" }
{
};
static List cache[256];
int main (void)
{
return 0;
}