gcc/testsuite/g++.dg/torture/pr78692.C
raw| 1 | // PR c++/78692 |
| 2 | |
| 3 | int a; |
| 4 | void *b; |
| 5 | extern "C" { |
| 6 | struct C { |
| 7 | virtual int d (); |
| 8 | }; |
| 9 | struct E { |
| 10 | virtual int operator () (int, const void *, int) = 0; |
| 11 | }; |
| 12 | class F { |
| 13 | int g (); |
| 14 | int h; |
| 15 | E &i; |
| 16 | }; |
| 17 | struct : C, E { |
| 18 | int operator () (int, const void *, int) { throw int(); } |
| 19 | } j; |
| 20 | |
| 21 | int |
| 22 | F::g () |
| 23 | { |
| 24 | a = i (h, b, 0); |
| 25 | return 0; |
| 26 | } |
| 27 | } |