diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-07-24 17:41:31 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-07-24 17:41:31 +0000 |
| commit | c0f7b81d89e648f1ccaa5609690f20c96248e9c6 (patch) | |
| tree | 0dc988303c04a98c72a980913b4e5c264dd55f86 /clang/test/Lexer/has_feature_cxx0x.cpp | |
| parent | f5f726c60d8afb9acf3ef15bf28859dccaf282be (diff) | |
| download | bcm5719-llvm-c0f7b81d89e648f1ccaa5609690f20c96248e9c6.tar.gz bcm5719-llvm-c0f7b81d89e648f1ccaa5609690f20c96248e9c6.zip | |
Update documentation to match current C++1y feature set.
llvm-svn: 187055
Diffstat (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp')
| -rw-r--r-- | clang/test/Lexer/has_feature_cxx0x.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp index 590c168768d..2dc2abe87cf 100644 --- a/clang/test/Lexer/has_feature_cxx0x.cpp +++ b/clang/test/Lexer/has_feature_cxx0x.cpp @@ -356,3 +356,23 @@ int no_return_type_deduction(); // CHECK-1Y: has_return_type_deduction // CHECK-11: no_return_type_deduction // CHECK-NO-11: no_return_type_deduction + +#if __has_feature(cxx_contextual_conversions) +int has_contextual_conversions(); +#else +int no_contextual_conversions(); +#endif + +// CHECK-1Y: has_contextual_conversions +// CHECK-11: no_contextual_conversions +// CHECK-NO-11: no_contextual_conversions + +#if __has_feature(cxx_relaxed_constexpr) +int has_relaxed_constexpr(); +#else +int no_relaxed_constexpr(); +#endif + +// CHECK-1Y: has_relaxed_constexpr +// CHECK-11: no_relaxed_constexpr +// CHECK-NO-11: no_relaxed_constexpr |

