+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.
// 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 {
};
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;
}