Commit 90af8042 by Bob Wilson Committed by Bob Wilson

spec10.C: Set exit value to zero on success.

	* g++.dg/template/spec10.C: Set exit value to zero on success.  Fix
	indentation.

From-SVN: r72195
parent f6d9224f
2003-10-06 Bob Wilson <bob.wilson@acm.org>
* g++.dg/template/spec10.C: Set exit value to zero on success. Fix
indentation.
2003-10-06 Mark Mitchell <mark@codesourcery.com> 2003-10-06 Mark Mitchell <mark@codesourcery.com>
PR c++/10147 PR c++/10147
......
...@@ -9,19 +9,19 @@ template<int b> ...@@ -9,19 +9,19 @@ template<int b>
class o class o
{ {
public: public:
template<typename T> static void do_add(T* p, T v); template<typename T> static void do_add(T* p, T v);
}; };
template<> template<>
template<typename T> template<typename T>
inline void o<32>::do_add(T* p, T v) inline void o<32>::do_add(T* p, T v)
{ {
*p += v; *p += v;
} }
int main() int main()
{ {
int a = 0x1000; int a = 0x1000;
o<32>().do_add<int>(&a, 0x2000); o<32>().do_add<int>(&a, 0x2000);
return a; return (a != 0x3000);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment