summaryrefslogtreecommitdiff
path: root/test/sanitizer_common/TestCases/Posix/fputs_puts.cpp
blob: 21bb93aa4310b82816a5b7ca09d3498a004c40c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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;
}