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) { } }