summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/copy-assign-synthesis-3.cpp
blob: 3dab0f2a81b3567bed9e153a1c1fae5d6a87a612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: clang-cc -emit-llvm-only -verify %s

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

struct B {
  A a;
  float b;
  int (A::*c)();
  _Complex float d;
};
void a(B& x, B& y) {
  x = y;
}

OpenPOWER on IntegriCloud