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
/
bitint-65.c
blob
f0b952047e87ab451ce5d3e47572a2942f37f1eb
1
/* PR c/113315 */
2
/* { dg-do compile { target bitint } } */
3
/* { dg-options "-std=c23" } */
4
5
#if __BITINT_MAXWIDTH__ >= 535
6
_BitInt
(
535
)
x
;
7
#else
8
_BitInt
(
64
)
x
;
9
#endif
10
extern
int
a
[];
11
extern
char
b
[][
10
];
12
13
int
14
foo
(
void
)
15
{
16
return
a
[
x
];
17
}
18
19
int
20
bar
(
void
)
21
{
22
return
__builtin_strlen
(
b
[
x
]);
23
}