diff options
Diffstat (limited to 'compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp')
-rw-r--r-- | compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp b/compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp index 0ff682abc95..1278cb05633 100644 --- a/compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp +++ b/compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp @@ -8,12 +8,14 @@ #include <cstdlib> #include <cstdio> +extern "C" __attribute__((noinline)) -static bool Func1(const uint8_t *Data, size_t Size) { +bool Func1(const uint8_t *Data, size_t Size) { // assumes Size >= 5, doesn't check it. return Data[4] == 'M'; } +extern "C" __attribute__((noinline)) bool Func2(const uint8_t *Data, size_t Size) { return Size >= 6 && Data[5] == 'E'; |