Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/spec36.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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> | |
11 T test() { } /* { dg-message "from definition" "" { target c++98_only } } */ | |
12 }; | |
13 } | |
14 template <> | |
15 basic_string MyNS::MyClass::test() /* { dg-error "specialization of" "" { target c++98_only } }*/ | |
16 { return 1; } |