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
/
fputc_putc_putchar.cpp
blob
7e786cd9ef374c37e0966a4308b8ff546446bc90
1
// RUN: %clangxx -g %s -o %t && %run %t | FileCheck %s
2
// CHECK: abc
3
4
#include <assert.h>
5
#include <stdio.h>
6
7
int
main
(
void
) {
8
assert
(
fputc
(
'a'
,
stdout
) !=
EOF
);
9
assert
(
putc
(
'b'
,
stdout
) !=
EOF
);
10
assert
(
putchar
(
'c'
) !=
EOF
);
11
12
return
0
;
13
}