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