diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-25 00:26:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-25 00:26:05 +0000 |
commit | 5fa4c43f14009166588b09db1de0e0ed9ee94287 (patch) | |
tree | 6acf5f11b8926190284a2dbbed4ee66200f832a3 | |
parent | 82434387dd203e86c1fbc8beb8deeb868ed15d1b (diff) | |
download | external_llvm-5fa4c43f14009166588b09db1de0e0ed9ee94287.zip external_llvm-5fa4c43f14009166588b09db1de0e0ed9ee94287.tar.gz external_llvm-5fa4c43f14009166588b09db1de0e0ed9ee94287.tar.bz2 |
testcase for PR1352
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36415 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CFrontend/2007-04-24-VolatileStructCopy.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CFrontend/2007-04-24-VolatileStructCopy.c b/test/CFrontend/2007-04-24-VolatileStructCopy.c new file mode 100644 index 0000000..4765921 --- /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; +} |