testcase for PR1352

llvm-svn: 36415
This commit is contained in:
Chris Lattner 2007-04-25 00:26:05 +00:00
parent 78dd0b2d3c
commit d7c51e5423
1 changed files with 10 additions and 0 deletions

View File

@ -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;
}