diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2021-03-19 09:23:28 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2021-03-19 09:25:23 +0100 |
commit | af73a8b2027d9ab64944d7dbbb48e207d7790ce6 (patch) | |
tree | 1de4a3eac8ba0faddac8cd768aec76f293207058 /gcc | |
parent | b980edba506442c846cc779243ceeffd13065740 (diff) | |
download | gcc-af73a8b2027d9ab64944d7dbbb48e207d7790ce6.zip gcc-af73a8b2027d9ab64944d7dbbb48e207d7790ce6.tar.gz gcc-af73a8b2027d9ab64944d7dbbb48e207d7790ce6.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/lto/pr89335_0.C | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/lto/pr89335_0.C b/gcc/testsuite/g++.dg/lto/pr89335_0.C index df2d2ba..95bf4b3 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; |