Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / avr / pr52472.c
blob701cfb42a253155995fc99c3e43555abe40a4eb0
1 /* { dg-do compile } */
2 /* { dg-options "-Os -g -Wno-pointer-to-int-cast" } */
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. */
9 extern const __memx unsigned data[][10];
11 unsigned long ice (void)
13 unsigned long addr32;
15 return addr32 = ((unsigned long) data);