summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/fuzzer/three-bytes.test
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/fuzzer/three-bytes.test')
-rw-r--r--compiler-rt/test/fuzzer/three-bytes.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler-rt/test/fuzzer/three-bytes.test b/compiler-rt/test/fuzzer/three-bytes.test
new file mode 100644
index 00000000000..8026bc67522
--- /dev/null
+++ b/compiler-rt/test/fuzzer/three-bytes.test
@@ -0,0 +1,8 @@
+Tests -use_value_profile=2 (alternative VP metric).
+RUN: %cpp_compiler %S/ThreeBytes.cpp -o %t
+
+RUN: %run %t -seed=1 -runs=100000
+RUN: %run %t -seed=1 -runs=100000 -use_value_profile=1
+RUN: not %run %t -seed=1 -runs=100000 -use_value_profile=2 2>&1 | FileCheck %s
+
+CHECK: Test unit written
OpenPOWER on IntegriCloud