Sign in
gnu
/
gcc
/
e5cfb9cac1d7aba9a8ea73bfe7922cfaff9d61f3
/
.
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr78586.c
blob: 6982534e9ee59a4b230ecfc274d2444687e8eb11 [
file
] [
log
] [
blame
]
/* PR tree-optimization/78586 */
void
foo
(
unsigned
long
x
)
{
char
a
[
30
];
unsigned
long
b
=
__builtin_sprintf
(
a
,
"%lu"
,
x
);
if
(
b
!=
4
)
__builtin_abort
();
}
int
main
()
{
foo
(
1000
);
return
0
;
}