diff options
author | Sirraide <aeternalmail@gmail.com> | 2024-08-05 14:02:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-05 14:02:15 +0200 |
commit | c65afad9c58474a784633314e945c874ed06584a (patch) | |
tree | 456a627c0f051a5f18a056d2c97cc41032de20cf /clang/test/Lexer/cxx-features.cpp | |
parent | e60ee1f2d70bdb0ac87b09ae685d669d8543b7bd (diff) | |
download | llvm-c65afad9c58474a784633314e945c874ed06584a.zip llvm-c65afad9c58474a784633314e945c874ed06584a.tar.gz llvm-c65afad9c58474a784633314e945c874ed06584a.tar.bz2 |
[Clang] Define __cpp_pack_indexing (#101956)
Following the discussion on #101448 this defines
`__cpp_pack_indexing`. Since pack indexing is currently
supported in all language modes, the feature test macro
is also defined in all language modes.
Diffstat (limited to 'clang/test/Lexer/cxx-features.cpp')
-rw-r--r-- | clang/test/Lexer/cxx-features.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp index 4c2aa3ae..08b7321 100644 --- a/clang/test/Lexer/cxx-features.cpp +++ b/clang/test/Lexer/cxx-features.cpp @@ -38,6 +38,10 @@ #error "wrong value for __cpp_deleted_function" #endif +#if check(pack_indexing, 202311, 202311, 202311, 202311, 202311, 202311, 202311) +#error "wrong value for __cpp_pack_indexing" +#endif + #if check(placeholder_variables, 202306, 202306, 202306, 202306, 202306, 202306, 202306) #error "wrong value for __cpp_placeholder_variables" #endif |