diff options
author | cor3ntin <corentinjabot@gmail.com> | 2024-04-28 20:25:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-28 20:25:44 +0200 |
commit | 6dd90616c477d83c156eed62c880e951bb508cfd (patch) | |
tree | 97249d834b0bb458a7509d5bab7abac35c000108 /clang/test/Lexer | |
parent | 216787cffc4a864e0effb165c1c32b92328a0a06 (diff) | |
download | llvm-6dd90616c477d83c156eed62c880e951bb508cfd.zip llvm-6dd90616c477d83c156eed62c880e951bb508cfd.tar.gz llvm-6dd90616c477d83c156eed62c880e951bb508cfd.tar.bz2 |
[Clang] Implement C++26 Attributes for Structured Bindings (P0609R3) (#89906)
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p0609r3.pdf
We support this feature in all language mode.
maybe_unused applied to a binding makes the whole declaration unused.
Diffstat (limited to 'clang/test/Lexer')
-rw-r--r-- | clang/test/Lexer/cxx-features.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp index baaa9d4..4a08eb6 100644 --- a/clang/test/Lexer/cxx-features.cpp +++ b/clang/test/Lexer/cxx-features.cpp @@ -222,7 +222,7 @@ #error "wrong value for __cpp_aggregate_bases" #endif -#if check(structured_bindings, 0, 0, 0, 201606, 201606, 201606, 201606) +#if check(structured_bindings, 0, 0, 0, 202403L, 202403L, 202403L, 202403L) #error "wrong value for __cpp_structured_bindings" #endif |