From a52d30b2bc2574c3f8301c7bf9397ce6f2035a98 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Wed, 16 May 2018 23:38:53 +0000 Subject: [PATCH] [libFuzzer] rename a test from .c to .cpp llvm-svn: 332558 --- ...SmallInputTest.c => MultipleConstraintsOnSmallInputTest.cpp} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename compiler-rt/test/fuzzer/{MultipleConstraintsOnSmallInputTest.c => MultipleConstraintsOnSmallInputTest.cpp} (99%) diff --git a/compiler-rt/test/fuzzer/MultipleConstraintsOnSmallInputTest.c b/compiler-rt/test/fuzzer/MultipleConstraintsOnSmallInputTest.cpp similarity index 99% rename from compiler-rt/test/fuzzer/MultipleConstraintsOnSmallInputTest.c rename to compiler-rt/test/fuzzer/MultipleConstraintsOnSmallInputTest.cpp index 49570cbc771c..8e24acbcf2d9 100644 --- a/compiler-rt/test/fuzzer/MultipleConstraintsOnSmallInputTest.c +++ b/compiler-rt/test/fuzzer/MultipleConstraintsOnSmallInputTest.cpp @@ -4119,7 +4119,7 @@ int api(const uint8_t *data, size_t size) { return 1; } -int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { if (api(Data, Size)) { // Should've crashed before getting here. return 0; -- 2.34.1