OSDN Git Service

* g++.old-dega/g++.pt/ttp62.C: Call abort() on failure.
authorlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Nov 2000 02:40:00 +0000 (02:40 +0000)
committerlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Nov 2000 02:40:00 +0000 (02:40 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37728 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/ttp62.C

index ba5dadf..10385ce 100644 (file)
@@ -1,3 +1,7 @@
+2000-11-24  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       * g++.old-dega/g++.pt/ttp62.C: Call abort() on failure.
+
 2000-11-24  Bernd Schmidt  <bernds@redhat.co.uk>
 
        * gcc.dg/sequence-point-1.c: Add some new tests.
index 34e9c9d..cf41525 100644 (file)
@@ -1,6 +1,6 @@
 // Origin: Ewgenij Gawrilow <gawrilow@math.TU-Berlin.DE>
 
-#include <iostream>
+extern "C" void abort ();
 
 template <template <class X> class B, class A>
 struct is_instance_of {
@@ -21,7 +21,9 @@ bool is_C (const T&) {
 };
 
 int main() {
-   std::cout << "should be true: " << is_C(C<int>()) << std::endl;
-   std::cout << "should be false: " << is_C(D<int>()) << std::endl;
+   if (!is_C(C<int>()))
+      abort ();
+   if (is_C(D<int>()))
+      abort ();
    return 0;
 }