mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-05 23:52:45 +00:00
Add a __has_feature check for arc_cf_code_audited.
llvm-svn: 142423
This commit is contained in:
parent
43f1d206b9
commit
91aee685d8
@ -610,6 +610,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) {
|
||||
.Case("ownership_holds", true)
|
||||
.Case("ownership_returns", true)
|
||||
.Case("ownership_takes", true)
|
||||
.Case("arc_cf_code_audited", true)
|
||||
// C1X features
|
||||
.Case("c_alignas", LangOpts.C1X)
|
||||
.Case("c_generic_selections", LangOpts.C1X)
|
||||
|
@ -1,5 +1,9 @@
|
||||
// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -verify %s
|
||||
|
||||
#if __has_feature(arc_cf_code_audited)
|
||||
char _global[-1]; // expected-error {{declared as an array with a negative size}}
|
||||
#endif
|
||||
|
||||
typedef const void *CFTypeRef;
|
||||
typedef const struct __CFString *CFStringRef;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user