Debian Codegraph @

clang/test/SemaCXX/libstdcxx_format_kind_hack.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -std=c++23 -verify %s
2
3 // expected-no-diagnostics
4
5 // Primary variable template std::format_kind is defined as followed since
6 // libstdc++ 15.1, which triggers compilation error introduced by GH134522.
7 // This file tests the workaround.
8
9 #define __GLIBCXX__ 20250513
10
11 namespace std {
12 template<typename _Rg>
13 constexpr auto format_kind =
14 __primary_template_not_defined(
15 format_kind<_Rg>
16 );
17 }