gcc/testsuite/g++.dg/torture/pr85078.C
raw| 1 | typedef __builtin_va_list a; |
| 2 | |
| 3 | class b |
| 4 | { |
| 5 | public: |
| 6 | virtual void c (int, const char *, a &); |
| 7 | char d; |
| 8 | void m_fn2 () |
| 9 | { |
| 10 | a a; |
| 11 | c (2, &d, a); |
| 12 | } |
| 13 | }; |
| 14 | |
| 15 | class e:b |
| 16 | { |
| 17 | virtual void f () |
| 18 | { |
| 19 | } |
| 20 | void c (int, const char *, a &); |
| 21 | }; |
| 22 | |
| 23 | class g |
| 24 | { |
| 25 | protected: |
| 26 | b h; |
| 27 | }; |
| 28 | |
| 29 | class i:g |
| 30 | { |
| 31 | int j (); |
| 32 | }; |
| 33 | |
| 34 | int |
| 35 | i::j () |
| 36 | { |
| 37 | h.m_fn2 (); |
| 38 | return 0; |
| 39 | } |
| 40 |