putc_putchar_unlocked.cpp 226 Bytes Raw Blame History Permalink 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; }