* g++.dg/template/spec10.C: Set exit value to zero on success. Fix
[official-gcc.git] / gcc / testsuite / g++.dg / template / spec10.C
blob4bf7f46a29038487dd55f6e59b977460992cf8a8
1 // { dg-do run }
3 // Origin: Lynn Akers <lakers@peachtree.com>
5 // PR c++/10940: Problem handling parameter list for static member
6 // that is a specialization of a member template of a template class.
8 template<int b>
9 class o
11 public:
12   template<typename T> static void do_add(T* p, T v);
15 template<>
16 template<typename T>
17 inline void o<32>::do_add(T* p, T v)
19   *p += v;
22 int main()
24   int a = 0x1000;
25   o<32>().do_add<int>(&a, 0x2000);
26   return (a != 0x3000);