gcc/testsuite/g++.old-deja/g++.brendan/crash50.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed old-abort |
| 3 | class B |
| 4 | { |
| 5 | public: |
| 6 | int i; |
| 7 | }; |
| 8 | int operator & (const B &s) { return ( s.i );} |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | class C |
| 15 | { |
| 16 | public: |
| 17 | C &operator = (const C &x) |
| 18 | { |
| 19 | return *this; |
| 20 | } |
| 21 | }; |
| 22 | |
| 23 | C &(C::*DD)(const C &x) = &C::operator=; |
| 24 | |
| 25 | int main() |
| 26 | { |
| 27 | ⅅ |
| 28 | |
| 29 | } |