(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
modules/
pr105169_a.C
/* { dg-module-do link { target { ! *-*-darwin* } } } */
/* { dg-options "-std=c++11 -fpatchable-function-entry=2 -O2" } */
/* { dg-additional-options "-std=c++11 -fpatchable-function-entry=2 -O2" } */

/* This test is in the "modules" package because it supports multiple files
   linkage.  */

#include "pr105169.h"

WinsockInterfaceClass* PacketTransport;

IPXAddressClass::IPXAddressClass(void)
{
}

int function()
{
  return PacketTransport->Get_Protocol();
}

int main()
{
  IPXAddressClass ipxaddr;
  return 0;
}