1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 /* This was causing PRE to insert the value of the ADDR variable, to
5 remove the invariant cast but in doing so, it was creating a
6 non-invariant expression out of the invariant one, causing a later
12 extern void foo (void);
13 unsigned char mem_readb(char *pt) __attribute__((nothrow));
15 void DOS_FreeProcessMemory(unsigned short pspseg) {
19 char *addr = (char*)(&((sMCB*)0)->type);
20 if (mem_readb(addr)==0x5a) break;