<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/102422>102422</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang] Suggest more test cases on issue 79748
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
lyazj
</td>
</tr>
</table>
<pre>
This is just an robustness enhancement suggestion.
https://github.com/llvm/llvm-project/issues/79748
I triggered this issue and found the solution done in https://github.com/llvm/llvm-project/issues/79748. However, the test cases attached to https://github.com/agozillon/llvm-project/commit/323660ae742aecb524898f956590d599e8869f7f do not include those for reference qualifiers, in addition to cv-qualifiers. As for the completeness consideration, I suggest to add more test cases like:
```c++
void* operator new(size_t bytes) &; //expected-error...
void* operator new(size_t bytes) &&; //expected-error...
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykU01vpDgQ_TXmUgqiDQZ84NBJ1Nqcd-8rYxfgrLF7XaYzya8fmU4mmRlpNB-SBcioXr2q954isrNHHJi4ZeK-UFtaQhzcs3p5LMZgnod_FktgCR43SqA8xDBulDwSAfpFeY0r-gS0zTNSssGXrLpn1fH6XFI6E6uPjJ8YP802LdtY6rAyfnLu8va6OcfwiDoxfrJEGxLjp052Tf8R6gFStPOMEQ2kKynaEJQ3MIXN50sECm7LJMAEj2A9_CGBEv4KT3jByPjd3iAhJdCKkEClpPSS2YQftVFzeLHOBf99Lx3W1eaPmtdtWynsGq5Qj4I3vewnKVohKyOkxL5v5dRNYAL4kMB67TaDkJZACFOIEHHCiF4j_L8pZyeLkTJn60EZY_edpAD6cvP-v4Qj7cV5MB3Ws8OEu7I6eLIGo8p1GebhTeAMooyBNcSvluHsf5jn_yAYa6vr0Yzf5rPfXoI1jB8hnDN8iODxifGe7Av-m2B8Tnn5EhhvWX0L133ipzPqhOYGYwyxLMtfhvoJtC90CzPURtZSFTgcOl5XkrddUyyDVErUkjeTQjG1B9FIJWU34Sj5KPjYF3bgFW-qvuqrRhwOTVmLqdXYY9_rUQglWVPhqqwrsxHKEOdit9twqHjDeeHUiI72LHKunfIz4zzHMg67c8ZtJtZUzlKid4hkk9sDfLdXiHv4-1Wrb0UK_jU0u7eLLbrh9_Pxyvky8M8BAAD__x2hX7o">