2 // Copyright (C) 2005 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 16 Sep 2005 <nathan@codesourcery.com>
5 // PR 23519 template specialization ordering (DR214)
6 // Origin: Maxim Yegorushkin <maxim.yegorushkin@gmail.com>
10 template<class T> int operator+(T&) { return 1;}
13 template<class T> struct B
15 int operator-(A&) {return 2;}
16 template<typename R> int operator*(R&) {return 3;}
19 template <typename T, typename R> int operator-(B<T>, R&) {return 4;}
20 template<class T> int operator+(A&, B<T>&) { return 5;}
21 template <typename T> int operator*(T &, A&){return 6;}