(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
ipa/
pr110276.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2" } */
       3  
       4  typedef long (*EFI_PCI_IO_PROTOCOL_CONFIG)();
       5  typedef struct {
       6    EFI_PCI_IO_PROTOCOL_CONFIG Read;
       7  } EFI_PCI_IO_PROTOCOL_CONFIG_ACCESS;
       8  typedef struct {
       9    EFI_PCI_IO_PROTOCOL_CONFIG_ACCESS Pci;
      10  } EFI_PCI_IO_PROTOCOL;
      11  int init_regs_0;
      12  static void __attribute__((constructor)) init(EFI_PCI_IO_PROTOCOL *pci_io) {
      13    if (init_regs_0)
      14      pci_io->Pci.Read();
      15  }