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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
modref-10.c
blob
4a6d9e54c23399034539ec9255f4f7115b5e5d48
1
/* { dg-do link } */
2
/* { dg-options "-O2 -fdump-tree-modref1" } */
3
void
linker_error
();
4
__attribute__
((
noinline
))
5
int
*
6
test
(
int
**
a
)
7
{
8
return
*
a
;
9
}
10
int
11
main
()
12
{
13
int
val
;
14
int
*
a
=&
val
;
15
int
*
b
=
test
(&
a
);
16
if
(
b
== (
int
*)&
a
)
17
linker_error
();
18
return
0
;
19
}
20
/* { dg-final { scan-tree-dump "no_direct_clobber no_indirect_clobber no_direct_escape no_indirect_escape not_returned_directly no_indirect_read" "modref1"} } */