llvm-project/llvm/test/CFrontend/2007-04-24-VolatileStructCo...

11 lines
168 B
C
Raw Normal View History

2007-04-25 08:26:05 +08:00
// 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;
}