llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/fputs_puts.cpp

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