summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/bugprone-suspicious-string-compare.cpp
blob: 505a9d282c1fe3be0c02395282a64961e567b98e (plain)
1
2
3
4
5
6
7
8
static const char A[] = "abc";

int strcmp(const char *, const char *);

int test_warning_patterns() {
  if (strcmp(A, "a"))
    return 0;
}