diff --git a/gcc/testsuite/g++.dg/other/pr113617-aux.cc b/gcc/testsuite/g++.dg/other/pr113617-aux.cc index e6900e05a5f..0576cee34bd 100644 --- a/gcc/testsuite/g++.dg/other/pr113617-aux.cc +++ b/gcc/testsuite/g++.dg/other/pr113617-aux.cc @@ -7,3 +7,42 @@ void qux() { A a; a.foo(0, 0); } + +namespace R { +template<> +Y >::AI +Y >::operator->() +{ + return AI(); +} +template<> +Y >::AI +Y >::operator->() +{ + return AI(); +} +} + +N1::N2::N3::AB ab; + +N1::N2::N3::AB & +N1::N2::N3::AB::bleh() +{ + return ab; +} + +N1::N2::N3::AC::AC(int) +{ +} + +void +N1::N2::N3::AC::m1(R::S) +{ +} + +#ifndef SHARED +int +main() +{ +} +#endif diff --git a/gcc/testsuite/g++.dg/other/pr113617.C b/gcc/testsuite/g++.dg/other/pr113617.C index a02dda1420d..0ee62c134e6 100644 --- a/gcc/testsuite/g++.dg/other/pr113617.C +++ b/gcc/testsuite/g++.dg/other/pr113617.C @@ -2,7 +2,7 @@ // { dg-do link { target c++11 } } // { dg-options "-O2" } // { dg-additional-options "-fPIC" { target fpic } } */ -// { dg-additional-options "-shared" { target shared } } */ +// { dg-additional-options "-shared -DSHARED" { target shared } } */ // { dg-additional-sources pr113617-aux.cc } #include "pr113617.h"