brintos

brintos / llvm-project-archived public Read only

0
0
Text · 443 B · 35611c8 Raw
18 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -std=c++23 -verify %s2 3// expected-no-diagnostics4 5// Primary variable template std::format_kind is defined as followed since6// libstdc++ 15.1, which triggers compilation error introduced by GH134522.7// This file tests the workaround.8 9#define __GLIBCXX__ 2025051310 11namespace std {12  template<typename _Rg>13    constexpr auto format_kind =14    __primary_template_not_defined(15      format_kind<_Rg>16    );17}18