Home | History | Annotate | Download | only in conv.qual
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 // expected-no-diagnostics
      3 
      4 bool is_char_ptr( const char* );
      5 
      6 template< class T >
      7         long is_char_ptr( T /* r */ );
      8 
      9 // Note: the const here does not lead to a qualification conversion
     10 template< class T >
     11         void    make_range( T* const r, bool );
     12 
     13 template< class T >
     14         void make_range( T& r, long );
     15 
     16 void first_finder( const char*& Search )
     17 {
     18         make_range( Search, is_char_ptr(Search) );
     19 }
     20