1 /* PR c++/38089 */
2 /* { dg-do compile } */
3 
4 struct basic_string
5 {
6   basic_string(const int __s);
7 };
8 namespace MyNS {
9   class MyClass {
10     template <typename T>
test()11     T test() { } /* { dg-message "from definition" "" { target c++98_only } } */
12   };
13 }
14 template <>
test()15 basic_string MyNS::MyClass::test() /* { dg-error "specialization of" "" { target c++98_only } }*/
16 { return 1; }
17