Commit f1f5b884 by Rainer Orth Committed by Rainer Orth

Don't use predefined sun in g++.dg/lto/pr87906

	* g++.dg/lto/pr87906_0.C: Use moon instead of possibly predefined
	sun.
	* g++.dg/lto/pr87906_1.C: Likewise.

From-SVN: r265910
parent 85eaf6c6
2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* g++.dg/lto/pr87906_0.C: Use moon instead of possibly predefined
sun.
* g++.dg/lto/pr87906_1.C: Likewise.
2018-11-08 Richard Biener <rguenther@suse.de> 2018-11-08 Richard Biener <rguenther@suse.de>
PR tree-optimization/87913 PR tree-optimization/87913
......
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
// { dg-extra-ld-options "-shared -nostdlib" } // { dg-extra-ld-options "-shared -nostdlib" }
namespace com { namespace com {
namespace sun { namespace moon {
namespace star {} namespace star {}
} // namespace sun } // namespace moon
} // namespace com } // namespace com
namespace a = com::sun::star; namespace a = com::moon::star;
namespace com { namespace com {
namespace sun { namespace moon {
namespace star { namespace star {
namespace uno { namespace uno {
class a { class a {
...@@ -28,7 +28,7 @@ class c { ...@@ -28,7 +28,7 @@ class c {
class RuntimeException : b {}; class RuntimeException : b {};
} // namespace uno } // namespace uno
} // namespace star } // namespace star
} // namespace sun } // namespace moon
} // namespace com } // namespace com
template <typename> void d(int) { throw a::uno::RuntimeException(); } template <typename> void d(int) { throw a::uno::RuntimeException(); }
int f; int f;
......
namespace com { namespace com {
namespace sun { namespace moon {
namespace star { namespace star {
namespace uno { namespace uno {
class a { class a {
...@@ -15,9 +15,9 @@ class RuntimeException : b {}; ...@@ -15,9 +15,9 @@ class RuntimeException : b {};
} // namespace uno } // namespace uno
class C : uno::RuntimeException {}; class C : uno::RuntimeException {};
} // namespace star } // namespace star
} // namespace sun } // namespace moon
} // namespace com } // namespace com
using com::sun::star::C; using com::moon::star::C;
using com::sun::star::uno::RuntimeException; using com::moon::star::uno::RuntimeException;
void d() { throw RuntimeException(); } void d() { throw RuntimeException(); }
void e() { C(); } void e() { C(); }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment