forked from OSchip/llvm-project
Add a __has_extension check for '#pragma clang attribute' as an external-declaration
This was added in r356075. llvm-svn: 356600
This commit is contained in:
parent
13ee62f7d7
commit
8ca6ab33b7
|
@ -247,6 +247,7 @@ EXTENSION(cxx_variable_templates, LangOpts.CPlusPlus)
|
|||
// Miscellaneous language extensions
|
||||
EXTENSION(overloadable_unmarked, true)
|
||||
EXTENSION(pragma_clang_attribute_namespaces, true)
|
||||
EXTENSION(pragma_clang_attribute_external_declaration, true)
|
||||
|
||||
#undef EXTENSION
|
||||
#undef FEATURE
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
// RUN: %clang_cc1 -triple x86_64-apple-darwin9.0.0 -verify -std=c++11 %s
|
||||
// RUN: %clang_cc1 -triple x86_64-apple-darwin9.0.0 -xobjective-c++ -verify -std=c++11 %s
|
||||
|
||||
#if !__has_extension(pragma_clang_attribute_external_declaration)
|
||||
#error
|
||||
#endif
|
||||
|
||||
#define BEGIN_PRAGMA _Pragma("clang attribute push (__attribute__((availability(macos, introduced=1000))), apply_to=function)")
|
||||
#define END_PRAGMA _Pragma("clang attribute pop")
|
||||
|
||||
|
|
Loading…
Reference in New Issue