diff options
Diffstat (limited to 'test/FrontendC++/x86-64-abi-sret-vs-2word-struct-param.cpp')
-rw-r--r-- | test/FrontendC++/x86-64-abi-sret-vs-2word-struct-param.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/test/FrontendC++/x86-64-abi-sret-vs-2word-struct-param.cpp b/test/FrontendC++/x86-64-abi-sret-vs-2word-struct-param.cpp deleted file mode 100644 index f81854e..0000000 --- a/test/FrontendC++/x86-64-abi-sret-vs-2word-struct-param.cpp +++ /dev/null @@ -1,27 +0,0 @@ -// RUN: %llvmgxx -S %s -o - | grep byval | count 2 -// XTARGET: x86 -// PR4242 -// (PR 4242 bug is on 64-bit only, test passes on x86-32 as well) - -struct S { - void* data[3]; -}; - -struct T { - void* data[2]; -}; - -extern "C" S fail(int, int, int, int, T t, void* p) { - S s; - s.data[0] = t.data[0]; - s.data[1] = t.data[1]; - s.data[2] = p; - return s; -} - -extern "C" S* succeed(S* sret, int, int, int, int, T t, void* p) { - sret->data[0] = t.data[0]; - sret->data[1] = t.data[1]; - sret->data[2] = p; - return sret; -} |