1// RUN: %clangxx -g %s -o %t && %run %t | FileCheck %s
2// CHECK: abc
3
4#include <assert.h>
5#include <stdio.h>
6
7int main(void) {
8 assert(fputc('a', stdout) != EOF);
9 assert(putc('b', stdout) != EOF);
10 assert(putchar('c') != EOF);
11
12 return 0;
13}
14

source code of compiler-rt/test/sanitizer_common/TestCases/Posix/fputc_putc_putchar.cpp