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:
Eric Botcazou 2021-03-19 09:23:28 +01:00
parent b980edba50
commit af73a8b202

View File

@ -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;