diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Sema/compare.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/compare.c b/test/Sema/compare.c new file mode 100644 index 0000000000..0aeeb30d73 --- /dev/null +++ b/test/Sema/compare.c @@ -0,0 +1,8 @@ +// RUN: clang -parse-ast-check %s + +int test(char *C) { // nothing here should warn. + return C != ((void*)0); + return C != (void*)0; + return C != 0; +} + |