copy-assign-synthesis-3.cpp revision 8a850baa41ea9015b949183667ad96a981f10b09
1// RUN: %clang_cc1 -emit-llvm-only -verify %s
2
3struct A {
4  A& operator=(A&);
5};
6
7struct B {
8  void operator=(B);
9};
10
11struct C {
12  A a;
13  B b;
14  float c;
15  int (A::*d)();
16  _Complex float e;
17  int f[10];
18  A g[2];
19  B h[2];
20};
21void a(C& x, C& y) {
22  x = y;
23}
24
25