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

13 lines
216 B
C++

// RUN: %clangxx -g %s -o %t && %run %t | FileCheck %s
// CHECK: {{^foobar$}}
#include <assert.h>
#include <stdio.h>
int main(void) {
assert(fputs("foo", stdout) >= 0);
assert(puts("bar") >= 0);
return 0;
}