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
/
tree-ssa
/
assign-3.c
blob
f86f2b15d62f0c36edebb820f88b3182c0708f8c
1
/* { dg-do run } */
2
/* { dg-options "-O2 -fdump-tree-gimple" } */
3
4
extern
void
abort
(
void
);
5
struct
S
{
int
i
; };
6
struct
S arr
[
32
];
7
volatile
int
count
=
0
;
8
9
struct
S
__attribute__
((
noinline
))
10
incr
()
11
{
12
++
count
;
13
}
14
15
int
main
()
16
{
17
arr
[
count
++] =
incr
();
18
if
(
count
!=
2
)
19
abort
();
20
return
0
;
21
}
22
23
/* { dg-final { scan-tree-dump-times " = count;" 3 "gimple" } } */