From 978a94db1ab2c3787871e8b723309925d1dfa47c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 12 Feb 2004 21:06:52 +0000 Subject: [PATCH] New testcase for PR233: [llvmgcc] Structure copies result in a LOT of code llvm-svn: 11359 --- .../CFrontend/2004-02-12-LargeAggregateCopy.c.tr | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Regression/CFrontend/2004-02-12-LargeAggregateCopy.c.tr diff --git a/test/Regression/CFrontend/2004-02-12-LargeAggregateCopy.c.tr b/test/Regression/CFrontend/2004-02-12-LargeAggregateCopy.c.tr new file mode 100644 index 00000000000..b3c9bcf3810 --- /dev/null +++ b/test/Regression/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; +} +