diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/static10.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/static10.C | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/static10.C b/gcc/testsuite/g++.dg/template/static10.C new file mode 100644 index 00000000000..ab857bd814e --- /dev/null +++ b/gcc/testsuite/g++.dg/template/static10.C @@ -0,0 +1,23 @@ +// PR c++/19555 + +namespace __gnu_debug_def { } +namespace std +{ + using namespace __gnu_debug_def; + template<typename _Tp> class allocator {}; +} +namespace __gnu_debug_def +{ + template<typename _Tp, + typename _Allocator = std::allocator<_Tp> > + class vector + { + void + swap(vector<_Tp,_Allocator>& __x); + }; +} +namespace std +{ + template<> void + vector<int, allocator<int> >::swap(vector<int, allocator<int> >&) { } // { dg-error "" } +} |