blob: 9f71687b40a5a410f710aa96e89646f0ff2009e5 [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 -emit-llvm -o - %s | grep memcpy
2// PR1421
3
4struct A {
5 char c;
6 int i;
7};
8
9struct B {
10 int c;
11 unsigned char x;
12};
13
14union U { struct A a; struct B b; };
15
16void check(union U *u, union U *v) {
17 *u = *v;
18}