PR target/84226
[official-gcc.git] / gcc / testsuite / gcc.target / avr / pr52472.c
blob84ed92f0c38045835879841d6013f009dfd81771
1 /* { dg-do compile { target { ! avr_tiny } } } */
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);