aboutsummaryrefslogtreecommitdiff
path: root/test/fuzzer/three-bytes.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/fuzzer/three-bytes.test')
-rw-r--r--test/fuzzer/three-bytes.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/fuzzer/three-bytes.test b/test/fuzzer/three-bytes.test
new file mode 100644
index 000000000000..0b2187552cf5
--- /dev/null
+++ b/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=30000
+RUN: %run %t -seed=1 -runs=30000 -use_value_profile=1
+RUN: not %run %t -seed=1 -runs=1000000 -use_value_profile=2 2>&1 | FileCheck %s
+
+CHECK: Test unit written