summaryrefslogtreecommitdiffstats
path: root/test/SemaObjCXX/nullability-consistency.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjCXX/nullability-consistency.mm')
-rw-r--r--test/SemaObjCXX/nullability-consistency.mm16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/SemaObjCXX/nullability-consistency.mm b/test/SemaObjCXX/nullability-consistency.mm
new file mode 100644
index 0000000..acb972d
--- /dev/null
+++ b/test/SemaObjCXX/nullability-consistency.mm
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -fsyntax-only -fblocks -I %S/Inputs -isystem %S/Inputs/nullability-consistency-system %s -verify
+// RUN: %clang_cc1 -fsyntax-only -fblocks -I %S/Inputs -isystem %S/Inputs/nullability-consistency-system %s -Wsystem-headers -DWARN_IN_SYSTEM_HEADERS -verify
+
+#include "nullability-consistency-1.h"
+#include "nullability-consistency-3.h"
+#include "nullability-consistency-4.h"
+#include "nullability-consistency-5.h"
+#include "nullability-consistency-5.h"
+#include "nullability-consistency-6.h"
+#include "nullability-consistency-7.h"
+#include "nullability-consistency-8.h"
+#include "nullability-consistency-system.h"
+
+void h1(int *ptr) { } // don't warn
+
+void h2(int * __nonnull) { }
OpenPOWER on IntegriCloud