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