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
c++: prev declared hidden tmpl friend inst [PR112288]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
ipa
/
pr103227-2.c
blob
e4f3c71533151a81b978f9e66f86f5d7728bf20d
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-optimized-slim" } */
3
4
struct
S
5
{
6
int
a
,
b
,
c
;
7
};
8
9
int
ellide
(
int
c
);
10
11
static void
__attribute__
((
noinline
))
12
foo
(
struct
S s
)
13
{
14
int
c
=
s
.
c
;
15
if
(
c
!=
21
)
16
ellide
(
c
);
17
}
18
19
void
20
entry
(
void
)
21
{
22
struct
S s
;
23
s
.
a
=
1
;
24
s
.
b
=
64
;
25
s
.
c
=
21
;
26
foo
(
s
);
27
}
28
29
/* { dg-final { scan-tree-dump-not "ellide" "optimized" } } */