enable __has_feature(is_standard_layout)

llvm-svn: 131240
This commit is contained in:
Howard Hinnant 2011-05-12 19:52:14 +00:00
parent 36882c8f24
commit 2d3eadac9b
2 changed files with 6 additions and 0 deletions

View File

@ -593,6 +593,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) {
.Case("is_empty", LangOpts.CPlusPlus)
.Case("is_enum", LangOpts.CPlusPlus)
.Case("is_literal", LangOpts.CPlusPlus)
.Case("is_standard_layout", LangOpts.CPlusPlus)
.Case("is_pod", LangOpts.CPlusPlus)
.Case("is_polymorphic", LangOpts.CPlusPlus)
.Case("is_trivial", LangOpts.CPlusPlus)

View File

@ -89,3 +89,8 @@ int is_union();
int is_literal();
#endif
// CHECK: int is_literal();
#if __has_feature(is_standard_layout)
int is_standard_layout();
#endif
// CHECK: int is_standard_layout();