llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/putc_putchar_unlocked.cpp

13 lines
226 B
C++

// 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;
}