Debian Codegraph @

gcc/testsuite/gcc.dg/pr94291.c

raw
1 /* PR rtl-optimization/94291 */
2 /* { dg-do compile } */
3 /* { dg-options "-Og" } */
4
5 unsigned a;
6
7 unsigned
8 foo (void)
9 {
10 unsigned x
11 = (__builtin_sub_overflow ((long long) a, 0, &x)
12 ? 1 : (__INTPTR_TYPE__) __builtin_memmove (&x, foo, 1)); /* { dg-warning "accessing data memory with program memory address.*" "" { target avr-*-* } } */
13
14 return a;
15 }