• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 bool is_char_ptr( const char* );
4 
5 template< class T >
6         long is_char_ptr( T /* r */ );
7 
8 // Note: the const here does not lead to a qualification conversion
9 template< class T >
10         void    make_range( T* const r, bool );
11 
12 template< class T >
13         void make_range( T& r, long );
14 
first_finder(const char * & Search)15 void first_finder( const char*& Search )
16 {
17         make_range( Search, is_char_ptr(Search) );
18 }
19