about summary refs log tree commit diff homepage
path: root/test/Feature/ubsan_ssub_overflow.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Feature/ubsan_ssub_overflow.c')
-rw-r--r--test/Feature/ubsan_ssub_overflow.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/Feature/ubsan_ssub_overflow.c b/test/Feature/ubsan_ssub_overflow.c
deleted file mode 100644
index 5ba62567..00000000
--- a/test/Feature/ubsan_ssub_overflow.c
+++ /dev/null
@@ -1,19 +0,0 @@
-// RUN: %llvmgcc %s -fsanitize=signed-integer-overflow -emit-llvm -g -O0 -c -o %t.bc
-// RUN: %klee %t.bc 2> %t.log
-// RUN: grep -c "overflow on unsigned subtraction" %t.log
-// RUN: grep -c "ubsan_ssub_overflow.c:16: overflow" %t.log
-
-#include "klee/klee.h"
-
-int main()
-{
-  signed int x;
-  signed int y;
-  volatile signed int result;
-
-  klee_make_symbolic(&x, sizeof(x), "signed sub 1");
-  klee_make_symbolic(&y, sizeof(y), "signed sub 2");
-  result = x - y;
-
-  return 0;
-}