Debian Codegraph @

gcc/testsuite/gcc.target/avr/pr52472.c

raw
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
11 unsigned long ice (void)
12 {
13 unsigned long addr32;
14
15 return addr32 = ((unsigned long) data);
16 }