Add an x86_64 test for PR 92476
2019-11-29 Martin Jambor <mjambor@suse.cz> PR ipa/92476 * g++.dg/lto/pr92476_[01].C: New test. From-SVN: r278842
This commit is contained in:
parent
68188fff88
commit
e1b5803354
@ -1,3 +1,8 @@
|
||||
2019-11-29 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
PR ipa/92476
|
||||
* g++.dg/lto/pr92476_[01].C: New test.
|
||||
|
||||
2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
|
||||
|
||||
PR tree-optimization/92710
|
||||
|
20
gcc/testsuite/g++.dg/lto/pr92476_0.C
Normal file
20
gcc/testsuite/g++.dg/lto/pr92476_0.C
Normal file
@ -0,0 +1,20 @@
|
||||
// { dg-lto-do link }
|
||||
// { dg-lto-options { { -O0 -flto -shared -fPIC -fvisibility=hidden } } }
|
||||
// { dg-require-effective-target fpic }
|
||||
// { dg-require-effective-target shared }
|
||||
// { dg-extra-ld-options "-shared" }
|
||||
|
||||
namespace Passenger {
|
||||
namespace Json {
|
||||
class Value {};
|
||||
} // namespace Json
|
||||
namespace ConfigKit {
|
||||
class Translator {};
|
||||
} // namespace ConfigKit
|
||||
namespace LoggingKit {
|
||||
void initialize(const Json::Value & = Json::Value(),
|
||||
const ConfigKit::Translator & = ConfigKit::Translator());
|
||||
void init_module() { initialize(); }
|
||||
} // namespace LoggingKit
|
||||
} // namespace Passenger
|
||||
|
13
gcc/testsuite/g++.dg/lto/pr92476_1.C
Normal file
13
gcc/testsuite/g++.dg/lto/pr92476_1.C
Normal file
@ -0,0 +1,13 @@
|
||||
// { dg-options { -O2 -flto -shared -fPIC -fvisibility=hidden } }
|
||||
|
||||
namespace Passenger {
|
||||
namespace Json {
|
||||
class Value;
|
||||
}
|
||||
namespace ConfigKit {
|
||||
class Translator;
|
||||
}
|
||||
namespace LoggingKit {
|
||||
void initialize(const Json::Value &, const ConfigKit::Translator &) {}
|
||||
} // namespace LoggingKit
|
||||
} // namespace Passenger
|
Loading…
x
Reference in New Issue
Block a user