aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt/test/fuzzer/read-binary.test
blob: c80858e811348b31f598ac8fda0233d46060cf2a (plain)
1
2
3
4
5
6
7
# Test that libFuzzer reads files properly.

# Account for the fact that echo will add a trailing newline.
RUN: echo -e "Hello\r\nWorld\r" > %t-testcase
RUN: %cpp_compiler %S/ReadBinaryTest.cpp -o %t-fuzzer
RUN: %run %t-fuzzer %t-testcase | FileCheck %s
CHECK: BINGO!