summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/compare.c
blob: b31ace62bd553ff68393e89155e28e87c5bc5686 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang -parse-ast -verify %s

int test(char *C) { // nothing here should warn.
  return C != ((void*)0);
  return C != (void*)0;
  return C != 0;
}

int equal(char *a, const char *b)
{
    return a == b;
}
OpenPOWER on IntegriCloud