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