Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / gcc.dg / pr21858.c
blob41cd240c8cce9848bbaedbf58c93983ea0c7d982
1 /* Fold used to create a GT_EXPR of pointer vs. integer types,
2 which caused us to ICE in VRP. */
4 /* { dg-do compile } */
5 /* { dg-options "-Os -w" } */
7 unsigned int dsdblm_GetBlockAddress();
8 void error_LocalAssert(void);
9 int dsdblm_CreateBlock(unsigned int address)
11 address = dsdblm_GetBlockAddress();
12 if (address >= (void*)0x00020000)
13 error_LocalAssert();
14 return address;