1 2 3 4 5 6 7 8 9 10
// PR c++/85659 // { dg-do compile } struct S { S (); ~S (); int s; }; void foo (S &s) { __asm volatile ("" : "+r" (s) : : "memory"); // { dg-error "" } }