Sign in
llvm
/
llvm-project
/
41d59a36459ea99ada4819a26072366f77484f87
/
.
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
Posix
/
putc_putchar_unlocked.cpp
blob: 12c35c220d97b6d5d58894cb71c947f350ab4612 [
file
] [
log
] [
blame
]
// RUN: %clangxx -g %s -o %t && %run %t | FileCheck %s
// CHECK: bc
#include
<assert.h>
#include
<stdio.h>
int
main
(
void
)
{
assert
(
putc_unlocked
(
'b'
,
stdout
)
!=
EOF
);
assert
(
putchar_unlocked
(
'c'
)
!=
EOF
);
return
0
;
}