llvm/llvm-project

[Clang] Suggest more test cases on issue 79748

已關閉

#102,422 建立於 2024年8月8日

 (7 則留言) (0 個反應) (0 位負責人)C++ (10,782 個分叉)batch import
clang:frontendgood first issuetest-suite

倉庫指標

星標
 (26,378 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

This is just a 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:

void* operator new(size_t bytes) &;  //expected-error...
void* operator new(size_t bytes) &&;  //expected-error...

貢獻者指南