pr6089.cpp revision 8e8fb3be5bd78f0564444eca02b404566a5f3b5d
1// RUN: %clang_cc1 -fsyntax-only -verify %s 2// expected-no-diagnostics 3 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 conversion 10template< 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