summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/nonnull.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/nonnull.c')
-rw-r--r--clang/test/Sema/nonnull.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/nonnull.c b/clang/test/Sema/nonnull.c
index b589bb3d1ff..3410d36ddfb 100644
--- a/clang/test/Sema/nonnull.c
+++ b/clang/test/Sema/nonnull.c
@@ -1,5 +1,9 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
// rdar://9584012
+//
+// Verify All warnings are still issued with the option -fno-delete-null-pointer-checks
+// if nullptr is passed to function with nonnull attribute.
+// RUN: %clang_cc1 -fsyntax-only -fno-delete-null-pointer-checks -verify %s
typedef struct {
char *str;
OpenPOWER on IntegriCloud