From: Bob Wilson Date: Tue, 7 Oct 2003 16:56:47 +0000 (+0000) Subject: spec10.C: Set exit value to zero on success. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90af80420ffdf47bb463ba333cbb922faf80c3ed;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 21f4e1588cb..49f002aaf7a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-10-06 Bob Wilson + + * g++.dg/template/spec10.C: Set exit value to zero on success. Fix + indentation. + 2003-10-06 Mark Mitchell PR c++/10147 diff --git a/gcc/testsuite/g++.dg/template/spec10.C b/gcc/testsuite/g++.dg/template/spec10.C index f790155dce2..4bf7f46a290 100644 --- a/gcc/testsuite/g++.dg/template/spec10.C +++ b/gcc/testsuite/g++.dg/template/spec10.C @@ -9,19 +9,19 @@ template class o { public: - template static void do_add(T* p, T v); + template static void do_add(T* p, T v); }; template<> template inline void o<32>::do_add(T* p, T v) { - *p += v; + *p += v; } int main() { - int a = 0x1000; - o<32>().do_add(&a, 0x2000); - return a; + int a = 0x1000; + o<32>().do_add(&a, 0x2000); + return (a != 0x3000); }