mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 01:55:08 +00:00
aea7afdc13
Addresses a conflict with glibc's __nonnull macro by renaming the type nullability qualifiers as follows: __nonnull -> _Nonnull __nullable -> _Nullable __null_unspecified -> _Null_unspecified This is the major part of rdar://problem/21530726, but does not yet provide the Darwin-specific behavior for the old names. llvm-svn: 240596
17 lines
697 B
Plaintext
17 lines
697 B
Plaintext
// RUN: %clang_cc1 -fsyntax-only -fblocks -I %S/Inputs -isystem %S/Inputs/nullability-consistency-system %s -verify
|
|
// RUN: %clang_cc1 -fsyntax-only -fblocks -I %S/Inputs -isystem %S/Inputs/nullability-consistency-system %s -Wsystem-headers -DWARN_IN_SYSTEM_HEADERS -verify
|
|
|
|
#include "nullability-consistency-1.h"
|
|
#include "nullability-consistency-3.h"
|
|
#include "nullability-consistency-4.h"
|
|
#include "nullability-consistency-5.h"
|
|
#include "nullability-consistency-5.h"
|
|
#include "nullability-consistency-6.h"
|
|
#include "nullability-consistency-7.h"
|
|
#include "nullability-consistency-8.h"
|
|
#include "nullability-consistency-system.h"
|
|
|
|
void h1(int *ptr) { } // don't warn
|
|
|
|
void h2(int * _Nonnull) { }
|