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