From e07c9626f5ffeeef8fcb7cc9106efd732c79113c Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 1 Aug 2009 22:31:44 +0000 Subject: Implement va_arg handling for x86_64. - Based on a patch by Vladimir Kuznetsov! - x86_64 has a complicated calling convention for va_args; instead of dealing with this, this patch uses a clever workaround by initializing the va_list structure so that the callee believes all arguments were passed in the stack save area. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@77819 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Feature/Vararg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/Feature/Vararg.c b/test/Feature/Vararg.c index f782c15e..9f6643bc 100644 --- a/test/Feature/Vararg.c +++ b/test/Feature/Vararg.c @@ -76,7 +76,7 @@ int main() { assert(va_array(5, 0, 5, 1, 1, 2, 1)==45); // 15 + 30 // should give memory error - test1(-1, 52, 37, 2.0, p); + test1(-1, 52, 2.0, p); return 0; } -- cgit 1.4.1