Commit 3a163b1a by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

* g++.old-dega/g++.pt/ttp62.C: Call abort() on failure.

From-SVN: r37728
parent c3edd394
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 {
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment