blob: 5807fc516dffca64ec6853cddfebc4ebb5268d95 [file] [log] [blame]
/* PR c++/38089 */
/* { dg-do compile } */
struct basic_string
{
basic_string(const int __s);
};
namespace MyNS {
class MyClass {
template <typename T>
T test() { } /* { dg-message "from definition" "" { target c++98_only } } */
};
}
template <>
basic_string MyNS::MyClass::test() /* { dg-error "specialization of" "" { target c++98_only } }*/
{ return 1; }