aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/lto/pr51567-1_0.C
blob: 87a7e97b4e2e916fb3e9a480a27e550aa86ddec2 (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
// { dg-lto-do link }
// { dg-lto-options { { -flto -g } } }

struct _Deque_iterator {
    int* _M_cur;
    void foo() {}
};
class _Deque_base {
public:
    typedef _Deque_iterator iterator;
    iterator _M_impl;
};
class deque : public _Deque_base {
public:
    typedef _Deque_base::iterator iterator;
};
class OutputContextStack {
public:
    deque m_stack;
    deque::iterator m_stackPosition;
};
int main()
{
  OutputContextStack s;
  s.m_stackPosition.foo();
}