Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr84961-1.C
blob: 6a72ad5134fc30cdd0930f0af7027a6ce808d24b [
file
] [
log
] [
blame
]
// PR c++/84961
// { dg-do compile }
short
a
;
volatile
int
b
;
int
c
,
d
;
void
foo
()
{
asm
volatile
(
""
:
"=r"
(
b
=
a
));
}
void
bar
()
{
asm
volatile
(
""
:
"=r"
(++
c
,
++
d
,
b
=
a
));
}
void
baz
()
{
asm
volatile
(
""
:
"=r"
(--
b
));
}