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
Small ChangeLog tweak.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr78312.c
blob
470e5b2ea0a8e97275cb86e0575583d4698ace90
1
/* { dg-do run } */
2
3
typedef
unsigned short
u16
;
4
5
static
u16 a
;
6
7
u16
__attribute__
((
noinline
,
noclone
))
8
foo
(
int
p1
)
9
{
10
a
= -(
p1
>
0
);
11
a
*=
0
!=
a
;
12
a
*= (
unsigned
)
a
;
13
return
a
;
14
}
15
16
int
17
main
()
18
{
19
u16 x
=
foo
(
1
);
20
if
(
x
!=
1
)
21
__builtin_abort
();
22
return
0
;
23
}