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
PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20080506-2.c
blob
d2fac713bd8947b767a3c5c1408c0d2cb83106fc
1
/* PR middle-end/36013 */
2
3
extern
void
abort
(
void
);
4
5
void
__attribute__
((
noinline
))
6
foo
(
int
**
__restrict p
,
int
**
__restrict q
)
7
{
8
*
p
[
0
] =
1
;
9
*
q
[
0
] =
2
;
10
if
(*
p
[
0
] !=
2
)
11
abort
();
12
}
13
14
int
15
main
(
void
)
16
{
17
int
a
;
18
int
*
p1
= &
a
, *
p2
= &
a
;
19
foo
(&
p1
, &
p2
);
20
return
0
;
21
}