brintos

brintos / llvm-project-archived public Read only

0
0
Text · 586 B · f39a0ca Raw
17 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -triple i686-pc-win32 -fms-compatibility -fms-compatibility-version=17.00 %s2// RUN: %clang_cc1 -fsyntax-only -triple i386-mingw32 %s3 4// Something in MSVC's headers (pulled in e.g. by <crtdefs.h>) defines __null5// to something, mimic that.6#define __null7 8#include <stddef.h>9 10// __null is used as a type annotation in MS headers, with __null defined to11// nothing in regular builds. This should continue to work even with stddef.h12// included.13void f(__null void* p) { }14 15// NULL should work fine even with __null defined to nothing.16void* p = NULL;17