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
/
pr104825.c
blob
7affacc2094274aaf068ea71c2f28dedf23e270b
1
/* { dg-do compile } */
2
/* { dg-additional-options "-Wno-stringop-overread" } */
3
4
int
foo
(
fmt
)
5
char
*
fmt
;
6
{
7
return
(
__builtin_strchr
(
fmt
,
'*'
) !=
0
8
||
__builtin_strchr
(
fmt
,
'n'
) !=
0
);
9
}
10
void
bar
()
11
{
12
if
(
foo
(
1
))
13
__builtin_abort
();
14
}