From: Chris Lattner Date: Wed, 25 Apr 2007 00:26:05 +0000 (+0000) Subject: testcase for PR1352 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5fa4c43f14009166588b09db1de0e0ed9ee94287;p=oota-llvm.git testcase for PR1352 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36415 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CFrontend/2007-04-24-VolatileStructCopy.c b/test/CFrontend/2007-04-24-VolatileStructCopy.c new file mode 100644 index 00000000000..4765921f1d2 --- /dev/null +++ b/test/CFrontend/2007-04-24-VolatileStructCopy.c @@ -0,0 +1,10 @@ +// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {volatile store} +// PR1352 + +struct foo { + int x; +}; + +void copy(volatile struct foo *p, struct foo *q) { + *p = *q; +}