Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
asm15.C
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 }
}