xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2007-04-24-VolatileStructCopy.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2 // PR1352
3 
4 struct foo {
5   int x;
6 };
7 
copy(volatile struct foo * p,struct foo * q)8 void copy(volatile struct foo *p, struct foo *q) {
9   // CHECK: call void @llvm.memcpy
10   *p = *q;
11 }
12