summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/eh/table.C
blob: 6f36bc6cf91e19bd6320e5ce71c4068748a369de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// { dg-do compile { target *-*-darwin* } }
// { dg-final { scan-assembler "GCC_except_table0" } }
void needed();
void unneeded();

class Bar
{
public:
  Bar() {}
  virtual ~Bar() {}

  void unneeded();
};

void needed()
{
	Bar b;
}

//#if 0
void unneeded()
{
	Bar b;
	b.unneeded();
}
//#endif

int main()
{
	needed();

	return 0;
}