llvm-project/clang/test/CodeGenCXX/copy-assign-synthesis-3.cpp

17 lines
190 B
C++

// 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;
}