diff options
author | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-11-14 20:00:32 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-11-14 20:00:32 +0100 |
commit | 8e745a17093aa4b5965fcf327c9d76f27e6c852f (patch) | |
tree | 1702fcc51e3bd50c33635a1cc5fdef029234f7d3 /gcc/c-family/c-cppbuiltin.c | |
parent | bf166718a9252bc7f867cbbe4e7772bf731acb0e (diff) | |
download | gcc-8e745a17093aa4b5965fcf327c9d76f27e6c852f.zip gcc-8e745a17093aa4b5965fcf327c9d76f27e6c852f.tar.gz gcc-8e745a17093aa4b5965fcf327c9d76f27e6c852f.tar.bz2 |
c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
* g++.dg/cpp1z/feat-cxx1z.C: Test __cpp_structured_bindings macro.
From-SVN: r242395
Diffstat (limited to 'gcc/c-family/c-cppbuiltin.c')
-rw-r--r-- | gcc/c-family/c-cppbuiltin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c index 70eade1..5c88e91 100644 --- a/gcc/c-family/c-cppbuiltin.c +++ b/gcc/c-family/c-cppbuiltin.c @@ -943,6 +943,7 @@ c_cpp_builtins (cpp_reader *pfile) cpp_define (pfile, "__cpp_deduction_guides=201606"); cpp_define (pfile, "__cpp_noexcept_function_type=201510"); cpp_define (pfile, "__cpp_template_auto=201606"); + cpp_define (pfile, "__cpp_structured_bindings=201606"); } if (flag_concepts) cpp_define (pfile, "__cpp_concepts=201507"); |