Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr98601.c

raw
1 /* PR rtl-optimization/98601 */
2 /* { dg-do compile } */
3
4 void
5 foo (void *p)
6 {
7 asm ("" : "=m" (*p)); /* { dg-warning "dereferencing 'void \\*' pointer" } */
8 }
9
10 void
11 bar (void *p)
12 {
13 asm volatile ("" : : "m" (*p)); /* { dg-warning "dereferencing 'void \\*' pointer" } */
14 /* { dg-error "memory input 0 is not directly addressable" "not addressable" { target *-*-* } .-1 } */
15 }