aboutsummaryrefslogtreecommitdiffstats
path: root/test/C++Frontend
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-02-15 22:05:15 +0000
committerDale Johannesen <dalej@apple.com>2008-02-15 22:05:15 +0000
commit35e11cd70b3d3d9c7dac1d63cc99f2cc911a5fda (patch)
tree5178fe1495374637e198236e6f124e0524d59aa5 /test/C++Frontend
parentbd3e5aac746d9d3ecbf6aea97ee573b2f0d4ab87 (diff)
downloadexternal_llvm-35e11cd70b3d3d9c7dac1d63cc99f2cc911a5fda.zip
external_llvm-35e11cd70b3d3d9c7dac1d63cc99f2cc911a5fda.tar.gz
external_llvm-35e11cd70b3d3d9c7dac1d63cc99f2cc911a5fda.tar.bz2
Modify test to expect improved code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/C++Frontend')
-rw-r--r--test/C++Frontend/2008-02-13-sret.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/C++Frontend/2008-02-13-sret.cpp b/test/C++Frontend/2008-02-13-sret.cpp
index 8ad2047..236495f 100644
--- a/test/C++Frontend/2008-02-13-sret.cpp
+++ b/test/C++Frontend/2008-02-13-sret.cpp
@@ -1,9 +1,9 @@
// RUN: %llvmgxx -S -O0 -emit-llvm %s -o - | grep {retval\\|memtmp} | grep S242 | \
-// RUN: grep {i32 1} | count 2
+// RUN: grep {i32 1} | count 1
+
+// Test that all 8 bytes of ret in check242 are copied, and only 4 bytes of
+// ret in check93 are copied (the same LLVM struct is used for both).
-// Test that all 8 bytes of ret in check242 are copied. llvm-gcc was
-// treating S242 as if it were S93, which does not need to have the
-// last 4 padding bytes copied.
typedef __builtin_va_list va_list;
typedef unsigned long size_t;
void *memset(void *, int, size_t);