modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/pr44831.c (about)

     1  typedef unsigned char UCHAR, *PUCHAR;
     2  typedef void *HANDLE;
     3  typedef struct _NCB {
     4      UCHAR ncb_reserve[10];
     5  } NCB, *PNCB;
     6  struct NBCmdQueue {
     7      PNCB head;
     8  };
     9  PNCB *NBCmdQueueFindNBC(struct NBCmdQueue *queue, PNCB ncb)
    10  {
    11    PNCB *ret = &queue->head;
    12    while (ret && *ret != ncb)
    13      ret = (PNCB *)((*ret)->ncb_reserve + sizeof(HANDLE));
    14  }
    15