summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-12 21:06:52 +0000
committerChris Lattner <sabre@nondot.org>2004-02-12 21:06:52 +0000
commit7266f41e56fb3e228b165a798c60027510b80d5e (patch)
treeda28e5e9e53f6fb6b365f94b10b7072e265c6d04 /test
parent94dc07728f091c652f0a8059aba6dce5018485ee (diff)
downloadllvm-7266f41e56fb3e228b165a798c60027510b80d5e.tar.gz
llvm-7266f41e56fb3e228b165a798c60027510b80d5e.tar.bz2
llvm-7266f41e56fb3e228b165a798c60027510b80d5e.tar.xz
New testcase for PR233: [llvmgcc] Structure copies result in a LOT of code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CFrontend/2004-02-12-LargeAggregateCopy.c.tr8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CFrontend/2004-02-12-LargeAggregateCopy.c.tr b/test/CFrontend/2004-02-12-LargeAggregateCopy.c.tr
new file mode 100644
index 0000000000..b3c9bcf381
--- /dev/null
+++ b/test/CFrontend/2004-02-12-LargeAggregateCopy.c.tr
@@ -0,0 +1,8 @@
+// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memcpy
+
+struct X { int V[10000]; };
+struct X Global1, Global2;
+void test() {
+ Global2 = Global1;
+}
+