From 1d168e4a14349eca7125ea508f8f219fad66508a Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 5 Jun 2009 05:37:59 +0000 Subject: Add test case. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72920 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Feature/Float.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/Feature/Float.c (limited to 'test') diff --git a/test/Feature/Float.c b/test/Feature/Float.c new file mode 100644 index 00000000..a1f54fd8 --- /dev/null +++ b/test/Feature/Float.c @@ -0,0 +1,22 @@ +// RUN: %llvmgcc -g -c %s -o %t.bc +// RUN: %klee %t.bc > %t.log +// RUN: grep "3.30* -1.10* 2.420*" %t.log + +#include + +float fadd(float a, float b) { + return a + b; +} + +float fsub(float a, float b) { + return a - b; +} + +float fmul(float a, float b) { + return a * b; +} + +int main() { + printf("%f %f %f\n", fadd(1.1, 2.2), fsub(1.1, 2.2), fmul(1.1, 2.2)); + return 0; +} -- cgit 1.4.1