8sa1-gcc/gcc/testsuite/g++.old-deja/g++.mike/eh57.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

19 lines
418 B
C

// Build don't link:
// Special g++ Options: -fno-exceptions
class Calendar_Time {
public:
~Calendar_Time ();
int operator <= (const Calendar_Time& t) const;
};
class Temporal_Model_Interval {
public:
Calendar_Time start_time ();
};
int intersects_p (Temporal_Model_Interval* i1, Temporal_Model_Interval* i2) {
return ((i1->start_time() <= i2->start_time())
|| (i1->start_time() <= i2->start_time()));
}