summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr44831.c
blob: 5539583deb0c0429ee0d2162983a65e617917b4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
typedef unsigned char UCHAR, *PUCHAR;
typedef void *HANDLE;
typedef struct _NCB {
    UCHAR ncb_reserve[10];
} NCB, *PNCB;
struct NBCmdQueue {
    PNCB head;
};
PNCB *NBCmdQueueFindNBC(struct NBCmdQueue *queue, PNCB ncb)
{
  PNCB *ret = &queue->head;
  while (ret && *ret != ncb)
    ret = (PNCB *)((*ret)->ncb_reserve + sizeof(HANDLE));
}