Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/ext/static1.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++/23699 |
2 // { dg-options "" } | |
3 | |
4 template<typename _CharT > class basic_string; | |
5 typedef basic_string<char> string; | |
6 template<typename _CharT> | |
7 struct basic_string | |
8 { | |
9 static const int npos = -1; | |
10 }; | |
11 template<typename _CharT> | |
12 const int basic_string<_CharT>::npos; | |
13 | |
14 extern template class basic_string<char>; | |
15 struct A | |
16 { | |
17 static const long npos = string::npos; | |
18 }; |