diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-12 21:06:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-12 21:06:52 +0000 |
commit | 7266f41e56fb3e228b165a798c60027510b80d5e (patch) | |
tree | da28e5e9e53f6fb6b365f94b10b7072e265c6d04 /test/CFrontend | |
parent | 94dc07728f091c652f0a8059aba6dce5018485ee (diff) | |
download | external_llvm-7266f41e56fb3e228b165a798c60027510b80d5e.zip external_llvm-7266f41e56fb3e228b165a798c60027510b80d5e.tar.gz external_llvm-7266f41e56fb3e228b165a798c60027510b80d5e.tar.bz2 |
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/CFrontend')
-rw-r--r-- | test/CFrontend/2004-02-12-LargeAggregateCopy.c.tr | 8 |
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 0000000..b3c9bcf --- /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; +} + |