repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
Posix
/
fputs_puts.cpp
blob
21bb93aa4310b82816a5b7ca09d3498a004c40c4
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
}