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++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr68671.c
blob
bec4639f80a865ead8d7f26c7516b8ba45d1d2d6
1
/* PR tree-optimization/68671 */
2
/* { dg-do run } */
3
/* { dg-options " -O2 -fno-tree-dce" } */
4
5
volatile
int
a
= -
1
;
6
volatile
int
b
;
7
8
static
inline
int
9
fn1
(
signed char
p1
,
int
p2
)
10
{
11
return
(
p1
<
0
) || (
p1
> (
1
>>
p2
)) ?
0
: (
p1
<<
1
);
12
}
13
14
int
15
main
()
16
{
17
signed char
c
=
a
;
18
b
=
fn1
(
c
,
1
);
19
c
= ((
128
|
c
) <
0
?
1
:
0
);
20
if
(
c
!=
1
)
21
__builtin_abort
();
22
return
0
;
23
}