summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash50.C
blob: 598c029f7b737890a20436d80c5d6f3b4e16f448 (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
28
29
// { dg-do assemble  }
// GROUPS passed old-abort
class B
        {
public:
        int i;
        };
int operator & (const B &s) { return ( s.i  );}





class C
        {
public:
        C &operator = (const C &x)
                {
                return *this;
                }
        };

C &(C::*DD)(const C &x) = &C::operator=;

int main()
{
        ⅅ

}