[NFC][TargetTransformInfo][VectorUtils] Consolidate `isVectorIntrinsic...` api (...
[llvm-project.git] / clang / test / CXX / over / over.built / p21.cpp
blob33db6647627b94b3e737760c9e8d62d571bfb913
1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
3 struct A {
4 };
6 template <typename T>
7 void f(int A::* pi, float A::* pf, int T::* pt, T A::* pu, T t) {
8 pi = pi;
9 pi = pf; // expected-error {{assigning to 'int A::*' from incompatible type 'float A::*'}}
10 pi = pt;
11 pi = pu;
12 pi = t;