bolt/deps/llvm-18.1.8/clang-tools-extra/test/clang-tidy/checkers/misc/unconventional-assign-operator-precxx11.cpp

7 lines
259 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// 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'
};