summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/eh57.C
blob: 087b4131bf1eca705abb33c004f5e9c94612922d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// { dg-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()));
}