repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
guality
/
pr43593.c
blob
d8cc41359be9ac50cba335a105c99c3533aacac6
1
/* PR debug/43593 */
2
/* { dg-do run } */
3
/* { dg-options "-g" } */
4
5
void
__attribute__
((
noinline
))
6
bar
(
int
*
p
)
7
{
8
asm
volatile
(
""
: :
"r"
(
p
) :
"memory"
);
9
}
10
11
int
__attribute__
((
noinline
))
12
foo
(
void
)
13
{
14
int
i
, *
j
= &
i
;
15
bar
(
j
);
16
return
6
+
i
;
/* { dg-final { gdb-test 16 "j" "&i" } } */
17
}
18
19
int
20
main
(
void
)
21
{
22
foo
();
23
return
0
;
24
}