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