Duncan Sands | 5fe97a0 | 2010-11-25 21:39:17 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -S -g %s -o - | llc -O0 -o %t.s |
Devang Patel | 55f84db | 2009-04-21 17:21:01 +0000 | [diff] [blame] | 2 | // RUN: %compile_c %t.s -o %t.o |
3 | // PR4025 | ||||
4 | |||||
5 | template <typename _Tp> class vector | ||||
6 | { | ||||
7 | public: | ||||
8 | ~vector () | ||||
9 | { | ||||
10 | } | ||||
11 | }; | ||||
12 | |||||
13 | class Foo | ||||
14 | { | ||||
15 | ~Foo(); | ||||
16 | class FooImpl *impl_; | ||||
17 | }; | ||||
18 | |||||
19 | namespace { | ||||
20 | class Bar; | ||||
21 | } | ||||
22 | |||||
23 | class FooImpl | ||||
24 | { | ||||
25 | vector<Bar*> thing; | ||||
26 | }; | ||||
27 | |||||
28 | Foo::~Foo() | ||||
29 | { | ||||
30 | delete impl_; | ||||
31 | } | ||||
32 |