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