From 85e5156598b1bbad0ae41cf4d0d5b845dd655ffd Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 26 Jul 2011 22:17:02 +0000 Subject: Migrate most of the rest of test/FrontendC from llvm and migrate most of them to FileCheck. llvm-svn: 136159 --- clang/test/CodeGen/2007-11-07-CopyAggregateAlign.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 clang/test/CodeGen/2007-11-07-CopyAggregateAlign.c (limited to 'clang/test/CodeGen/2007-11-07-CopyAggregateAlign.c') diff --git a/clang/test/CodeGen/2007-11-07-CopyAggregateAlign.c b/clang/test/CodeGen/2007-11-07-CopyAggregateAlign.c new file mode 100644 index 00000000000..d6caf78aeda --- /dev/null +++ b/clang/test/CodeGen/2007-11-07-CopyAggregateAlign.c @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s +struct A { char s, t, u, v; short a; }; +// CHECK: %a = alloca %struct.A, align 2 +// CHECK: %b = alloca %struct.A, align 2 +// CHECK: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %tmp, i8* %tmp1, i64 6, i32 2, i1 false) + +void q() { struct A a, b; a = b; } -- cgit v1.2.3