repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr84961-1.C
blob
6a72ad5134fc30cdd0930f0af7027a6ce808d24b
1
// PR c++/84961
2
// { dg-do compile }
3
4
short a;
5
volatile int b;
6
int c, d;
7
8
void
9
foo ()
10
{
11
asm volatile ("" : "=r" (b = a));
12
}
13
14
void
15
bar ()
16
{
17
asm volatile ("" : "=r" (++c, ++d, b = a));
18
}
19
20
void
21
baz ()
22
{
23
asm volatile ("" : "=r" (--b));
24
}