https://github.com/efriedma-quic commented:

Maybe we should just be testing if the copy-assignment operator is deleted?  
For reference, MSVC also returns the following indirectly:

```
struct Test
{
    int x;
    Test& operator=(const Test&) = delete;
};
Test foo();
Test test(Test x)
{
  return x;
}
```

https://github.com/llvm/llvm-project/pull/90547
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to