diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2018-11-08 08:45:58 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2018-11-08 08:45:58 +0000 |
commit | f1f5b884c8d7a3360e0c46a9cb3c383af1d7b883 (patch) | |
tree | bf4aa33e4f02842ca29407177d0b0d029a2e3d0d /gcc | |
parent | 85eaf6c6a3678d7eb19552a8a6f58018e6892115 (diff) | |
download | gcc-f1f5b884c8d7a3360e0c46a9cb3c383af1d7b883.zip gcc-f1f5b884c8d7a3360e0c46a9cb3c383af1d7b883.tar.gz gcc-f1f5b884c8d7a3360e0c46a9cb3c383af1d7b883.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/lto/pr87906_0.C | 10 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/lto/pr87906_1.C | 8 |
3 files changed, 15 insertions, 9 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5edc17e..3584dfb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +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> PR tree-optimization/87913 diff --git a/gcc/testsuite/g++.dg/lto/pr87906_0.C b/gcc/testsuite/g++.dg/lto/pr87906_0.C index 08e7ed3..31b62da 100644 --- a/gcc/testsuite/g++.dg/lto/pr87906_0.C +++ b/gcc/testsuite/g++.dg/lto/pr87906_0.C @@ -3,13 +3,13 @@ // { dg-extra-ld-options "-shared -nostdlib" } namespace com { -namespace sun { +namespace moon { namespace star {} -} // namespace sun +} // namespace moon } // namespace com -namespace a = com::sun::star; +namespace a = com::moon::star; namespace com { -namespace sun { +namespace moon { namespace star { namespace uno { class a { @@ -28,7 +28,7 @@ class c { class RuntimeException : b {}; } // namespace uno } // namespace star -} // namespace sun +} // namespace moon } // namespace com template <typename> void d(int) { throw a::uno::RuntimeException(); } int f; diff --git a/gcc/testsuite/g++.dg/lto/pr87906_1.C b/gcc/testsuite/g++.dg/lto/pr87906_1.C index ee5849f..5610876 100644 --- a/gcc/testsuite/g++.dg/lto/pr87906_1.C +++ b/gcc/testsuite/g++.dg/lto/pr87906_1.C @@ -1,5 +1,5 @@ namespace com { -namespace sun { +namespace moon { namespace star { namespace uno { class a { @@ -15,9 +15,9 @@ class RuntimeException : b {}; } // namespace uno class C : uno::RuntimeException {}; } // namespace star -} // namespace sun +} // namespace moon } // namespace com -using com::sun::star::C; -using com::sun::star::uno::RuntimeException; +using com::moon::star::C; +using com::moon::star::uno::RuntimeException; void d() { throw RuntimeException(); } void e() { C(); } |