brintos

brintos / llvm-project-archived public Read only

0
0
Text · 459 B · bfadc6c Raw
20 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// expected-no-diagnostics3 4bool is_char_ptr( const char* );5 6template< class T >7        long is_char_ptr( T /* r */ );8 9// Note: the const here does not lead to a qualification conversion10template< class T >11        void    make_range( T* const r, bool );12 13template< class T >14        void make_range( T& r, long );15 16void first_finder( const char*& Search )17{18        make_range( Search, is_char_ptr(Search) );19}20