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