summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash35.C
blob: 93a0aeb9c39154c28aa75f89bde81d4f8e20b809 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do assemble  }
// GROUPS passed old-abort
const unsigned int ENET_INTERRUPT_MID = 5;

extern "C" void ENET_RxP();

class EnetReceiver
    {
    public:
        friend void ENET_RxP();
        void  receiveMessage();
        int *messagePointer;
    };

void EnetReceiver::receiveMessage()
    {
    if (*((unsigned int*) messagePointer) == ENET_INTERRUPT_MID)
        {
        }
    }