Sign in
llvm
/
llvm-project
/
41d59a36459ea99ada4819a26072366f77484f87
/
.
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
Posix
/
fputs_puts.cpp
blob: 21bb93aa4310b82816a5b7ca09d3498a004c40c4 [
file
] [
log
] [
blame
]
// RUN: %clangxx -g %s -o %t && %run %t | FileCheck %s
// CHECK: {{^foobar$}}
#include
<assert.h>
#include
<stdio.h>
int
main
(
void
)
{
assert
(
fputs
(
"foo"
,
stdout
)
>=
0
);
assert
(
puts
(
"bar"
)
>=
0
);
return
0
;
}