diff options
Diffstat (limited to 'test/clang-tidy')
-rw-r--r-- | test/clang-tidy/google-runtime-int.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/clang-tidy/google-runtime-int.cpp b/test/clang-tidy/google-runtime-int.cpp index bcf6eb60..e51ca7de 100644 --- a/test/clang-tidy/google-runtime-int.cpp +++ b/test/clang-tidy/google-runtime-int.cpp @@ -65,3 +65,10 @@ struct some_value {}; constexpr some_value operator"" _some_literal(unsigned long long int i); // CHECK-MESSAGES: [[@LINE-1]]:47: warning: consider replacing 'unsigned long long' +struct A { A& operator=(const A&); }; +class B { A a[0]; }; + +void fff() { + B a, b; + a = b; +} |