summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/warn-self-comparisons.cpp
blob: 620be195c1de0aafd97669de38561708fe5adbbc (about) (plain)
1
2
3
4
5
// RUN: %clang_cc1 -fsyntax-only -verify %s

void f(int (&array1)[2], int (&array2)[2]) {
  if (array1 == array2) { } // no warning
}