blob: 9ebb4dc15f9a45ffada74c9dabc8822f9c6fcb44 [file] [log] [blame]
// PR c++/85659
// { dg-do compile }
struct S { S (); ~S (); int s[64]; } s;
void
foo ()
{
__asm volatile ("" : "=r" (s) : : "memory"); // { dg-error "impossible constraint" }
// { dg-error "must stay in memory" "" { target *-*-* } .-1 }
}