[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / 2007-05-29-UnionCopy.c
blob9f71687b40a5a410f710aa96e89646f0ff2009e5
1 // RUN: %clang_cc1 -emit-llvm -o - %s | grep memcpy
2 // PR1421
4 struct A {
5 char c;
6 int i;
7 };
9 struct B {
10 int c;
11 unsigned char x;
14 union U { struct A a; struct B b; };
16 void check(union U *u, union U *v) {
17 *u = *v;