1 /* { dg-do compile { target { ! avr_tiny } } } */
2 /* { dg-options "-Os -g -Wno-pointer-to-int-cast" } */
3 
4 /* This testcase exposes PR52472. expand_debug_expr mistakenly
5    considers the address space of data to be generic, and
6    asserts that PSImode pointers aren't valid in the generic
7    address space. */
8 
9 extern const __memx unsigned data[][10];
10 
ice(void)11 unsigned long ice (void)
12 {
13   unsigned long addr32;
14 
15   return addr32 = ((unsigned long) data);
16 }
17