mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-11 04:06:20 +00:00
![Reid Kleckner](/assets/img/avatar_default.png)
This reverts r360271 (git commit a0933bd8ec1515167ea653f7ee788b8bbde27d51) There are concerns on the review that this breaks EFI builds and that the transitive includes (sal.h) are actually heavy enough that we might care. llvm-svn: 360291
17 lines
586 B
C++
17 lines
586 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, mimic 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;
|