summaryrefslogtreecommitdiff
path: root/test/sanitizer_common/TestCases/Posix/putc_putchar_unlocked.cc
blob: 12c35c220d97b6d5d58894cb71c947f350ab4612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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;
}