summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Sema/warn-null.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/test/Sema/warn-null.c b/clang/test/Sema/warn-null.c
deleted file mode 100644
index 8ac8c5c9d34..00000000000
--- a/clang/test/Sema/warn-null.c
+++ /dev/null
@@ -1,6 +0,0 @@
-// RUN: %clang_cc1 %s -verify -fsyntax-only
-
-// PR10837: warn if a non-pointer-typed expression is folded to a null pointer
-int *p = 0;
-int *q = '\0'; // expected-warning{{expression which evaluates to zero treated as a null pointer constant}}
-int *r = (1 - 1); // expected-warning{{expression which evaluates to zero treated as a null pointer constant}}
OpenPOWER on IntegriCloud