
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
17 lines
587 B
C++
17 lines
587 B
C++
// RUN: %clang_cc1 -fsyntax-only -triple i686-pc-win32 -fms-compatibility -fms-compatibility-version=17.00 %s
|
|
// RUN: %clang_cc1 -fsyntax-only -triple i386-mingw32 %s
|
|
|
|
// Something in MSVC's headers (pulled in e.g. by <crtdefs.h>) defines __null
|
|
// to something, mimick that.
|
|
#define __null
|
|
|
|
#include <stddef.h>
|
|
|
|
// __null is used as a type annotation in MS headers, with __null defined to
|
|
// nothing in regular builds. This should continue to work even with stddef.h
|
|
// included.
|
|
void f(__null void* p) { }
|
|
|
|
// NULL should work fine even with __null defined to nothing.
|
|
void* p = NULL;
|