1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/test/CFrontend/2007-04-24-VolatileStructCopy.c
Chris Lattner bcc8d13861 testcase for PR1352
llvm-svn: 36415
2007-04-25 00:26:05 +00:00

11 lines
168 B
C

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