summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/has_feature_cxx0x.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp')
-rw-r--r--clang/test/Lexer/has_feature_cxx0x.cpp10
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
OpenPOWER on IntegriCloud