diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-05-12 03:09:35 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-05-12 03:09:35 +0000 |
commit | 9155be1e5436eedde45a8a58a924e611b5e738b7 (patch) | |
tree | b4202d4f143f4983dd26e0f7fcde80e568daff0e /clang/test/Lexer/has_feature_cxx0x.cpp | |
parent | 6c30f49af39da4c39cdab5f303f57f4809218b41 (diff) | |
download | bcm5719-llvm-9155be1e5436eedde45a8a58a924e611b5e738b7.tar.gz bcm5719-llvm-9155be1e5436eedde45a8a58a924e611b5e738b7.zip |
C++1y: provide full 'auto' return type deduction for lambda expressions. This
completes the implementation of N3638.
llvm-svn: 181669
Diffstat (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp')
-rw-r--r-- | clang/test/Lexer/has_feature_cxx0x.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp index 62a965caacb..590c168768d 100644 --- a/clang/test/Lexer/has_feature_cxx0x.cpp +++ b/clang/test/Lexer/has_feature_cxx0x.cpp @@ -346,3 +346,13 @@ int no_aggregate_nsdmi(); // CHECK-1Y: has_aggregate_nsdmi // CHECK-11: no_aggregate_nsdmi // CHECK-NO-11: no_aggregate_nsdmi + +#if __has_feature(cxx_return_type_deduction) +int has_return_type_deduction(); +#else +int no_return_type_deduction(); +#endif + +// CHECK-1Y: has_return_type_deduction +// CHECK-11: no_return_type_deduction +// CHECK-NO-11: no_return_type_deduction |