diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-04-29 01:25:49 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-04-29 01:25:49 +0000 |
commit | f077c51a70eb01f2aa870e25ec24ac39557ae8d8 (patch) | |
tree | 4343a65f5c8433d37466dc52c3624fa0061120e6 /clang/test | |
parent | 8af28c1e61aacf4eeafea59ca478908fc314b48e (diff) | |
download | bcm5719-llvm-f077c51a70eb01f2aa870e25ec24ac39557ae8d8.tar.gz bcm5719-llvm-f077c51a70eb01f2aa870e25ec24ac39557ae8d8.zip |
Revert r207482; I fail at reading IRC.
llvm-svn: 207483
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Headers/needsnull.cpp | 20 |
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. -} |