Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
));
}