OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [eh/] [pr43365.C] - Blame information for rev 717

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
extern "C" void abort();
2
 
3
class Counter
4
{
5
public:
6
  static int count;
7
  ~Counter() { count += 1; }
8
};
9
 
10
int Counter::count = 0;
11
 
12
void func()
13
{
14
  Counter c;
15
 
16
  try {
17
    throw 1;
18
  }
19
  catch (const int&) {
20
    return;
21
  }
22
}
23
 
24
int main()
25
{
26
  func();
27
  if (Counter::count != 1)
28
    abort();
29
  return 0;
30
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.