Ted Kremenek | 9f3d942 | 2007-09-26 20:14:22 +0000 | [diff] [blame] | 1 | // RUN: clang -parse-ast -verify %s |
Chris Lattner | d28f815 | 2007-08-26 01:10:14 +0000 | [diff] [blame] | 2 | |
3 | int test(char *C) { // nothing here should warn. | ||||
4 | return C != ((void*)0); | ||||
5 | return C != (void*)0; | ||||
6 | return C != 0; | ||||
7 | } | ||||
8 | |||||
Steve Naroff | 77878cc | 2007-08-27 04:08:11 +0000 | [diff] [blame] | 9 | int equal(char *a, const char *b) |
10 | { | ||||
11 | return a == b; | ||||
12 | } |