summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Headers/needsnull.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/clang/test/Headers/needsnull.cpp b/clang/test/Headers/needsnull.cpp
deleted file mode 100644
index 267cb5ddc31..00000000000
--- a/clang/test/Headers/needsnull.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-// RUN: %clang_cc1 -fsyntax-only -triple i386-linux-gnu -verify -Wsentinel %s
-// expected-no-diagnostics
-
-#include <stddef.h>
-
-// linux/stddef.h does something like this for cpp files:
-#undef NULL
-#define NULL 0
-
-// glibc (and other) headers then define __need_NULL and rely on stddef.h
-// to redefine NULL to the correct value again.
-#define __need_NULL
-#include <stddef.h>
-
-// gtk headers then use __attribute__((sentinel)), which doesn't work if NULL
-// is 0.
-void f(const char* c, ...) __attribute__((sentinel));
-void g() {
- f("", NULL); // Shouldn't warn.
-}
OpenPOWER on IntegriCloud