gcc/testsuite/g++.old-deja/g++.mike/net28.C
raw| 1 | // { dg-do assemble } |
| 2 | // From [email protected] against gcc 2.5.0. |
| 3 | // shows an InterViews problem on RS6000 and i386. Doesn't happen on |
| 4 | // SPARC. |
| 5 | |
| 6 | // From fbrowser.c. |
| 7 | |
| 8 | |
| 9 | class test { |
| 10 | }; |
| 11 | |
| 12 | |
| 13 | typedef int ( test ::* test2)(int fd); |
| 14 | |
| 15 | class ivFileBrowserImpl_IOCallback |
| 16 | { |
| 17 | public: |
| 18 | |
| 19 | int inputReady(int fd); |
| 20 | test * _obj; |
| 21 | test2 _input; |
| 22 | }; |
| 23 | |
| 24 | |
| 25 | int ivFileBrowserImpl_IOCallback ::inputReady(int fd) |
| 26 | { |
| 27 | return (_obj->*_input)(fd); |
| 28 | } |