Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
asm7.C
blob: a5cad0073719e6f626ba00912877866061e003b5 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
const
int
i
=
0
;
void
f
(
void
)
{
__asm__ __volatile__
(
""
:
"=m"
(
i
));
/* { dg-error "read-only variable" } */
}
void
g
(
const
int
set
)
{
__asm__ __volatile__
(
""
:
"=r"
(
set
));
/* { dg-error "read-only parameter" } */
}