Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gcc.dg
/
pr21419.c
blob: 120ed7f141521d4d0a1d8b78b670c859b53e06d0 [
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" } */
}