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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr42952.c
blob
db8782af3b9eb3d5f1a4d4a5a156b90ebfb1d01e
1
/* { dg-do run } */
2
/* { dg-options "-fno-tree-ccp -fno-tree-fre" } */
3
4
extern
void
abort
(
void
);
5
6
static int
g
[
1
];
7
8
static int
*
const
p
= &
g
[
0
];
9
static int
*
const
q
= &
g
[
0
];
10
11
int
main
(
void
)
12
{
13
g
[
0
] =
1
;
14
*
p
=
0
;
15
*
p
= *
q
;
16
if
(
g
[
0
] !=
0
)
17
abort
();
18
return
0
;
19
}