summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-12-19 04:21:36 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-12-19 04:21:36 +0000
commitdbe74e0ccddec7c7ac4ca906f1eaef71bee3f16b (patch)
treef1b14dacece70303f77839807086da121853e5aa /clang/test
parentcb0ccb08eef92fd3c92265b65f17c2be17e4df16 (diff)
downloadbcm5719-llvm-dbe74e0ccddec7c7ac4ca906f1eaef71bee3f16b.tar.gz
bcm5719-llvm-dbe74e0ccddec7c7ac4ca906f1eaef71bee3f16b.zip
Add __cpp_structured_bindings feature test macro for structured bindings, per
latest (provisional) draft of SD-6. llvm-svn: 290082
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Lexer/cxx-features.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp
index 8f1e286a294..5fc1722e942 100644
--- a/clang/test/Lexer/cxx-features.cpp
+++ b/clang/test/Lexer/cxx-features.cpp
@@ -78,11 +78,15 @@
#error "wrong value for __cpp_nested_namespace_definitions"
#endif
+// inheriting_constructors checked below
+
#if check(aggregate_bases, 0, 0, 0, 201603)
#error "wrong value for __cpp_aggregate_bases"
#endif
-// FIXME: structured_bindings / decomposition_decl name not yet settled
+#if check(structured_bindings, 0, 0, 0, 201606)
+#error "wrong value for __cpp_structured_bindings"
+#endif
#if check(nontype_template_args, 0, 0, 0, 201411)
#error "wrong value for __cpp_nontype_template_args"
OpenPOWER on IntegriCloud