Require linker plugin for another LTO test
If it is not present, fat LTO is generated with an additional warning. gcc/testsuite/ * g++.dg/lto/pr89335_0.C: Require the linker plugin.
This commit is contained in:
parent
b980edba50
commit
af73a8b202
@ -1,15 +1,20 @@
|
||||
// { 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;
|
||||
|
Loading…
Reference in New Issue
Block a user