From 1cb50c0a0e1a535ad39da2708829ac78f0f154d8 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Sat, 21 Nov 2020 15:43:05 -0500 Subject: [PATCH] testsuite: localclass2 require LTO The testcase uses LTO but does not include the dg-require LTO. gcc/testsuite/ChangeLog: * g++.dg/debug/localclass2.C: Require LTO. --- gcc/testsuite/g++.dg/debug/localclass2.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/debug/localclass2.C b/gcc/testsuite/g++.dg/debug/localclass2.C index 3dd7cae322d..9897eec5d2d 100644 --- a/gcc/testsuite/g++.dg/debug/localclass2.C +++ b/gcc/testsuite/g++.dg/debug/localclass2.C @@ -1,6 +1,7 @@ // PR c++/97918 -// { dg-additional-options "-g -O -flto" } // { dg-do compile { target c++11 } } +// { dg-require-effective-target lto } +// { dg-additional-options "-g -O -flto" } namespace { class A {}; } class B {}; -- 2.30.2