brintos

brintos / llvm-project-archived public Read only

0
0
Text · 276 B · 92ba118 Raw
13 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare2 3template <typename T, typename U>4void 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