summaryrefslogtreecommitdiff
path: root/test/fuzzer/windows-opt-ref.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/fuzzer/windows-opt-ref.test')
-rw-r--r--test/fuzzer/windows-opt-ref.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/fuzzer/windows-opt-ref.test b/test/fuzzer/windows-opt-ref.test
new file mode 100644
index 0000000000000..1f3386d13478b
--- /dev/null
+++ b/test/fuzzer/windows-opt-ref.test
@@ -0,0 +1,9 @@
+REQUIRES: windows
+// Verify that the linker eliminating unreferenced functions (/OPT:REF) does not
+// strip sancov module constructor.
+RUN: %cpp_compiler %S/SimpleCmpTest.cpp -o %t-SimpleCmpTest /link /OPT:REF
+
+RUN: not %run %t-SimpleCmpTest -seed=1 -runs=100000000 2>&1 | FileCheck %s
+
+CHECK-NOT: ERROR: no interesting inputs were found. Is the code instrumented for coverage? Exiting.
+CHECK: BINGO