☰
Debian Codegraph
@
1:21.1.8-7
1:21.1.8-13
1:21.1.8-12
1:21.1.8-11
1:21.1.8-10
/
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
Posix
/
fputs_puts.cpp
☽
☼
compiler-rt/test/sanitizer_common/TestCases/Posix/fputs_puts.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clangxx -g %s -o %t && %run %t | FileCheck %s
2
// CHECK: {{^foobar$}}
3
4
#include <assert.h>
5
#include <stdio.h>
6
7
int main(void) {
8
assert(fputs("foo", stdout) >= 0);
9
assert(puts("bar") >= 0);
10
11
return 0;
12
}