summaryrefslogtreecommitdiffstats
path: root/llvm/test/C++Frontend/2008-02-13-sret.cpp
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
commitd2fd6b84c79f000ac423853e90ad8fb8a3d21cf5 (patch)
tree6976d1b600a537bf8ba5fb9243c011c5446c3d8a /llvm/test/C++Frontend/2008-02-13-sret.cpp
parentc4bf7ef7449d4c7a42aca4cdcde94cf9f31a03b4 (diff)
downloadbcm5719-llvm-d2fd6b84c79f000ac423853e90ad8fb8a3d21cf5.tar.gz
bcm5719-llvm-d2fd6b84c79f000ac423853e90ad8fb8a3d21cf5.zip
Modify test to expect improved code.
llvm-svn: 47182
Diffstat (limited to 'llvm/test/C++Frontend/2008-02-13-sret.cpp')
-rw-r--r--llvm/test/C++Frontend/2008-02-13-sret.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/C++Frontend/2008-02-13-sret.cpp b/llvm/test/C++Frontend/2008-02-13-sret.cpp
index 8ad20470197..236495ffb4c 100644
--- a/llvm/test/C++Frontend/2008-02-13-sret.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud