spec10.C: Set exit value to zero on success.
authorBob Wilson <bob.wilson@acm.org>
Tue, 7 Oct 2003 16:56:47 +0000 (16:56 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Tue, 7 Oct 2003 16:56:47 +0000 (16:56 +0000)
* g++.dg/template/spec10.C: Set exit value to zero on success.  Fix
indentation.

From-SVN: r72195

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/spec10.C

index 21f4e1588cb862da3c358b49a14aeb434513fb58..49f002aaf7a225636f3b4b188aeea15fd26cd7d5 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR c++/10147
index f790155dce288ba58a8c8f30e6744a9fbca173e3..4bf7f46a29038487dd55f6e59b977460992cf8a8 100644 (file)
@@ -9,19 +9,19 @@ template<int b>
 class o
 {
 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<typename T>
 inline void o<32>::do_add(T* p, T v)
 {
-       *p += v;
+  *p += v;
 }
 
 int main()
 {
-       int a = 0x1000;
-       o<32>().do_add<int>(&a, 0x2000);
-       return a;
+  int a = 0x1000;
+  o<32>().do_add<int>(&a, 0x2000);
+  return (a != 0x3000);
 }