diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-01 22:31:44 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-01 22:31:44 +0000 |
commit | e07c9626f5ffeeef8fcb7cc9106efd732c79113c (patch) | |
tree | 8e06a3640e08bb17fcbc95514e33c50c6024ce36 /test | |
parent | 3f22dfb755580dc8d608140f5b4274b0e7ba14cd (diff) | |
download | klee-e07c9626f5ffeeef8fcb7cc9106efd732c79113c.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/Feature/Vararg.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |