[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / warn-self-comparisons.cpp
blob2e8d130bcd5a0aa43fb6393334824151af57c096
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 void f(int (&array1)[2], int (&array2)[2]) {
5 if (array1 == array2) { } // no warning