llvm/test/FrontendC/2007-04-24-VolatileStructCopy.c

11 lines
168 B
C
Raw Normal View History

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