1// RUN: %check_clang_tidy -std=c++98,c++03 %s misc-unconventional-assign-operator %t
2
3struct BadArgument {
4 BadArgument &operator=(BadArgument &);
5 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: operator=() should take 'BadArgument const&' or 'BadArgument'
6};
7

source code of clang-tools-extra/test/clang-tidy/checkers/misc/unconventional-assign-operator-precxx11.cpp