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