aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>2000-11-25 02:40:00 +0000
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>2000-11-25 02:40:00 +0000
commit3a163b1a99ff25ae2d6ce3e901fbf2656498a0ce (patch)
treec133b09c503083921c2fa3d18c8357dd8dfb675a /gcc
parentc3edd394bb8b06993f89fd2ea1b0e112a501011b (diff)
downloadgcc-3a163b1a99ff25ae2d6ce3e901fbf2656498a0ce.zip
gcc-3a163b1a99ff25ae2d6ce3e901fbf2656498a0ce.tar.gz
gcc-3a163b1a99ff25ae2d6ce3e901fbf2656498a0ce.tar.bz2
* g++.old-dega/g++.pt/ttp62.C: Call abort() on failure.
From-SVN: r37728
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/ttp62.C8
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ba5dadf..10385ce 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/ttp62.C b/gcc/testsuite/g++.old-deja/g++.pt/ttp62.C
index 34e9c9d..cf41525 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/ttp62.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/ttp62.C
@@ -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;
}