]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Require linker plugin for another LTO test
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 19 Mar 2021 08:23:28 +0000 (09:23 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 19 Mar 2021 08:25:23 +0000 (09:25 +0100)
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

index df2d2ba8fb145e7a68585576e993342130a8da7d..95bf4b3b0cbce79c71b0a44c9b7478169faac740 100644 (file)
@@ -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;