1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
2 
3 template <typename T, typename U>
f(int * pi,float * pf,T * pt,U * pu,T t)4 void f(int* pi, float* pf, T* pt, U* pu, T t) {
5   pi = pi;
6   pi = pf; // expected-error {{incompatible pointer types}}
7   pi = pt;
8   pu = pi;
9   pu = pt;
10   pi = t;
11   pu = t;
12 }
13