mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 17:46:06 +00:00

instead of all assignment operators. The mistake messes up IRGen because it ends up assuming that the assignment operator is actually the implicit copy assignment operator, and therefore tries to emit the RHS as an lvalue. llvm-svn: 86307
10 lines
108 B
C++
10 lines
108 B
C++
// RUN: clang-cc %s -emit-llvm-only -verify
|
|
|
|
class x {
|
|
int operator=(int);
|
|
};
|
|
void a() {
|
|
x a;
|
|
a = 1u;
|
|
}
|