diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-14 22:56:17 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-14 22:56:17 +0000 |
commit | 1cb2af0b3a84ed6ca384970357a8094745865d9c (patch) | |
tree | 46714286bfc69c833d3d51a22efd2c5e76b5cd64 /clang/test/Lexer/has_feature_cxx0x.cpp | |
parent | a7b443a6bf91bbb48941ae42e90a047a0bb61141 (diff) | |
download | bcm5719-llvm-1cb2af0b3a84ed6ca384970357a8094745865d9c.tar.gz bcm5719-llvm-1cb2af0b3a84ed6ca384970357a8094745865d9c.zip |
Advertize support for constexpr.
llvm-svn: 150524
Diffstat (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp')
-rw-r--r-- | clang/test/Lexer/has_feature_cxx0x.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp index f02f1031add..17ed6fbfafd 100644 --- a/clang/test/Lexer/has_feature_cxx0x.cpp +++ b/clang/test/Lexer/has_feature_cxx0x.cpp @@ -217,3 +217,12 @@ int no_unicode_literals(); // CHECK-0X: has_unicode_literals // CHECK-NO-0X: no_unicode_literals + +#if __has_feature(cxx_constexpr) +int has_constexpr(); +#else +int no_constexpr(); +#endif + +// CHECK-0X: has_constexpr +// CHECK-NO-0X: no_constexpr |