From af73a8b2027d9ab64944d7dbbb48e207d7790ce6 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Fri, 19 Mar 2021 09:23:28 +0100 Subject: [PATCH] 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. --- gcc/testsuite/g++.dg/lto/pr89335_0.C | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/lto/pr89335_0.C b/gcc/testsuite/g++.dg/lto/pr89335_0.C index df2d2ba8fb1..95bf4b3b0cb 100644 --- a/gcc/testsuite/g++.dg/lto/pr89335_0.C +++ b/gcc/testsuite/g++.dg/lto/pr89335_0.C @@ -1,15 +1,20 @@ // { dg-lto-do link } -// { dg-lto-options {{-O2 -flto -Wsuggest-final-methods}} } +// { 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;