Nico Weber 74989aff53 compiler-rt: Rename cc files below test/sanitizer_common to cpp
See r367803 and similar other changes.

llvm-svn: 367863
2019-08-05 13:57:03 +00:00

14 lines
246 B
C++

// 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;
}