| 1 |
/* { dg-module-do link { target { ! *-*-darwin* } } } */ |
| 2 |
/* { dg-options "-std=c++11 -fpatchable-function-entry=2 -O2" } */ |
| 3 |
/* { dg-additional-options "-std=c++11 -fpatchable-function-entry=2 -O2" } */ |
| 4 |
|
| 5 |
/* This test is in the "modules" package because it supports multiple files |
| 6 |
linkage. */ |
| 7 |
|
| 8 |
#include "pr105169.h" |
| 9 |
|
| 10 |
WinsockInterfaceClass* PacketTransport; |
| 11 |
|
| 12 |
IPXAddressClass::IPXAddressClass(void) |
| 13 |
{ |
| 14 |
} |
| 15 |
|
| 16 |
int function() |
| 17 |
{ |
| 18 |
return PacketTransport->Get_Protocol(); |
| 19 |
} |
| 20 |
|
| 21 |
int main() |
| 22 |
{ |
| 23 |
IPXAddressClass ipxaddr; |
| 24 |
return 0; |
| 25 |
} |