summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20091002-2_0.C
blob: c150e977d141a1bba6e258321bf91a31af675e9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-lto-do link }
// { dg-lto-options {{-fPIC}} }
// { dg-extra-ld-options "-fPIC -r -nostdlib" }

class DataArray {
    int max() const    { }
};
template < class HashItem > 
class DataHashTable {
    template < class ElemHashItem >
	class Element    { };
    typedef Element< HashItem > Elem;
    DataArray m_elem;
};
class Name    { };
class NameSet {
    DataHashTable < Name > hashtab;
};
NameSet p;