summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/copy-assign-synthesis-3.cpp
blob: 0c876d02ec56923be3f181b09218549e9e63c430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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;
};
void a(B& x, B& y) {
  x = y;
}

OpenPOWER on IntegriCloud