Sign in
chromium
/
native_client
/
nacl-toolchain
/
gdb-6.8
/
.
/
gcc
/
gcc
/
testsuite
/
gcc.dg
/
pr21419.c
blob: dc8f602e6b22a5aff8b242f6a093f150be0e5838 [
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 location" } */
}