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
/
pr115877.c
blob
432b1280b17744c7e88542ecd055fd5e5139ef52
1
/* { dg-do run { target int128 } } */
2
3
char
a
[
16
];
4
unsigned short
u
;
5
6
__int128
7
foo
(
int
i
)
8
{
9
i
-= (
unsigned short
) ~
u
;
10
a
[(
unsigned short
)
i
] =
1
;
11
return
i
;
12
}
13
14
int
15
main
()
16
{
17
__int128 x
=
foo
(
0
);
18
if
(
x
!= -
0xffff
)
19
__builtin_abort
();
20
}