Sign in
gnu
/
gcc
/
e5cfb9cac1d7aba9a8ea73bfe7922cfaff9d61f3
/
.
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr104825.c
blob: 7affacc2094274aaf068ea71c2f28dedf23e270b [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-additional-options "-Wno-stringop-overread" } */
int
foo
(
fmt
)
char
*
fmt
;
{
return
(
__builtin_strchr
(
fmt
,
'*'
)
!=
0
||
__builtin_strchr
(
fmt
,
'n'
)
!=
0
);
}
void
bar
()
{
if
(
foo
(
1
))
__builtin_abort
();
}