csmith-project / creduce

C-Reduce, a C and C++ program reducer
Other
1.31k stars 123 forks source link

clang_delta "remove-unused-function" transformation does not work correctly for deleted function #206

Closed user202729 closed 4 years ago

user202729 commented 4 years ago

Example run:

$ cat test.cpp
struct nope {};
template<typename T>
nope swap(T &, T &) = delete;

int main(){}

$ clang_delta --transformation=remove-unused-function --counter=1 test.cpp
struct nope {};
 = delete;

int main(){}
chenyang78 commented 4 years ago

Fixed in commit ce947d67. Thank you for reporting the issue, @user202729 !