1 // RUN: %clang_cc1 -fsyntax-only -verify %s
5 typedef T
* type
; // expected-error{{'type' declared as a pointer to a reference}}
8 add_pointer
<int>::type
test1(int * ptr
) { return ptr
; }
10 add_pointer
<float>::type
test2(int * ptr
) {
11 return ptr
; // expected-error{{cannot initialize return object of type 'add_pointer<float>::type' (aka 'float *') with an lvalue of type 'int *'}}
14 add_pointer
<int&>::type
// expected-note{{in instantiation of template class 'add_pointer<int &>' requested here}}