about summary refs log tree commit diff homepage
path: root/test/Feature/ubsan/ubsan_float_cast_overflow.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Feature/ubsan/ubsan_float_cast_overflow.c')
-rw-r--r--test/Feature/ubsan/ubsan_float_cast_overflow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Feature/ubsan/ubsan_float_cast_overflow.c b/test/Feature/ubsan/ubsan_float_cast_overflow.c
index 749a340e..6f17c6fa 100644
--- a/test/Feature/ubsan/ubsan_float_cast_overflow.c
+++ b/test/Feature/ubsan/ubsan_float_cast_overflow.c
@@ -1,6 +1,8 @@
 // RUN: %clang %s -fsanitize=float-cast-overflow -emit-llvm -g %O0opt -c -o %t.bc
 // RUN: rm -rf %t.klee-out
 // RUN: %klee --output-dir=%t.klee-out --emit-all-errors --ubsan-runtime %t.bc 2>&1 | FileCheck %s
+// RUN: ls %t.klee-out/ | grep .ktest | wc -l | grep 1
+// RUN: ls %t.klee-out/ | grep .overflow.err | wc -l | grep 1
 
 #include "klee/klee.h"
 
@@ -8,6 +10,8 @@ int main() {
   float f = 0x7fffff80;
   volatile int result;
 
+  // TODO: uncomment when support for floating points is integrated
+
   //  klee_make_symbolic(&f, sizeof(f), "f");
 
   // CHECK: runtime/Sanitizer/ubsan/ubsan_handlers.cpp:35: float-cast-overflow