reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
// RUN: %clangxx -g %s -o %t && %run %t | FileCheck %s
// CHECK: abc

#include <assert.h>
#include <stdio.h>

int main(void) {
  assert(fputc('a', stdout) != EOF);
  assert(putc('b', stdout) != EOF);
  assert(putchar('c') != EOF);

  return 0;
}