forked from OSchip/llvm-project
7 lines
259 B
C++
7 lines
259 B
C++
|
// RUN: %check_clang_tidy -std=c++98,c++03 %s misc-unconventional-assign-operator %t
|
||
|
|
||
|
struct BadArgument {
|
||
|
BadArgument &operator=(BadArgument &);
|
||
|
// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: operator=() should take 'BadArgument const&' or 'BadArgument'
|
||
|
};
|