Sign in
gnu
/
gcc
/
e5cfb9cac1d7aba9a8ea73bfe7922cfaff9d61f3
/
.
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20030626-1.c
blob: 8b985f03530cead8aa162938036d93ba30310f3f [
file
] [
log
] [
blame
]
char
buf
[
10
];
extern
void
abort
(
void
);
extern
int
sprintf
(
char
*,
const
char
*,
...);
int
main
()
{
int
l
=
sprintf
(
buf
,
"foo\0bar"
);
if
(
l
!=
3
)
abort
();
return
0
;
}