Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / Posix / fputs_puts.cpp
blob21bb93aa4310b82816a5b7ca09d3498a004c40c4
1 // RUN: %clangxx -g %s -o %t && %run %t | FileCheck %s
2 // CHECK: {{^foobar$}}
4 #include <assert.h>
5 #include <stdio.h>
7 int main(void) {
8 assert(fputs("foo", stdout) >= 0);
9 assert(puts("bar") >= 0);
11 return 0;