aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/copy-assign-synthesis-3.cpp
blob: 73c2261cddc1453698a8046ad10e9cae4ff5d15e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %clang_cc1 -emit-llvm-only -verify %s

struct A {
  A& operator=(const A&);
};

struct B {
  A a;
  float b;
  int (A::*c)();
  _Complex float d;
  int e[10];
  A f[2];
};
void a(B& x, B& y) {
  x = y;
}