Skip to content
Snippets Groups Projects
Select Git revision
  • 9b864e76e68e07c03d604e10a97f5f7a59a68f6c
  • develop default protected
  • feature/advection
  • feature/composite-scheme-other-fluxes
  • origin/stage/bouguettaia
  • save_clemence
  • feature/local-dt-fsi
  • feature/variational-hydro
  • feature/gmsh-reader
  • feature/reconstruction
  • feature/kinetic-schemes
  • feature/composite-scheme-sources
  • feature/serraille
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

demangle.cpp

Blame
  • Stephane Del Pino's avatar
    Stéphane Del Pino authored
    subrepo:
      subdir:   "packages/PEGTL"
      merged:   "ed5a3f88d"
    upstream:
      origin:   "git@github.com:taocpp/PEGTL.git"
      branch:   "master"
      commit:   "ed5a3f88d"
    git-subrepo:
      version:  "0.4.0"
      origin:   "git@github.com:ingydotnet/git-subrepo.git"
      commit:   "5d6aba9"
    9b864e76
    History
    demangle.cpp 1.12 KiB
    // Copyright (c) 2017-2019 Dr. Colin Hirsch and Daniel Frey
    // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
    
    #include "test.hpp"
    
    #include <tao/pegtl/internal/demangle.hpp>
    
    namespace TAO_PEGTL_NAMESPACE
    {
       template< typename T >
       void test( const std::string& s )
       {
          TAO_PEGTL_TEST_ASSERT( internal::demangle< T >() == s );
       }
    
       void unit_test()
       {
    #if !defined( __clang__ ) && defined( __GNUC__ ) && ( __GNUC__ == 9 ) && ( __GNUC_MINOR__ <= 2 )
          // see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91155
          test< int >( "i" );
          test< double >( "d" );
          test< seq< bytes< 42 >, eof > >( "N3tao5pegtl3seqIJNS0_5bytesILj42EEENS0_3eofEEEE" );
    #elif defined( _MSC_VER )
          test< int >( "int" );
          test< double >( "double" );
          test< seq< bytes< 42 >, eof > >( "struct tao::pegtl::seq<struct tao::pegtl::bytes<42>,struct tao::pegtl::eof>" );
    #else
          test< int >( "int" );
          test< double >( "double" );
          test< seq< bytes< 42 >, eof > >( "tao::pegtl::seq<tao::pegtl::bytes<42>, tao::pegtl::eof>" );
    #endif
       }
    
    }  // namespace TAO_PEGTL_NAMESPACE
    
    #include "main.hpp"