1// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2// PR1352
3
4struct foo {
5  int x;
6};
7
8void copy(volatile struct foo *p, struct foo *q) {
9  // CHECK: call void @llvm.memcpy
10  *p = *q;
11}
12