New testcase for PR233: [llvmgcc] Structure copies result in a LOT of code
authorChris Lattner <sabre@nondot.org>
Thu, 12 Feb 2004 21:06:52 +0000 (21:06 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 12 Feb 2004 21:06:52 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11359 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2004-02-12-LargeAggregateCopy.c.tr [new file with mode: 0644]

diff --git a/test/CFrontend/2004-02-12-LargeAggregateCopy.c.tr b/test/CFrontend/2004-02-12-LargeAggregateCopy.c.tr
new file mode 100644 (file)
index 0000000..b3c9bcf
--- /dev/null
@@ -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;
+}
+