repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[NFC][TargetTransformInfo][VectorUtils] Consolidate `isVectorIntrinsic...` api (...
[llvm-project.git]
/
clang
/
test
/
CXX
/
over
/
over.built
/
p21.cpp
blob
33db6647627b94b3e737760c9e8d62d571bfb913
1
// RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
2
3
struct
A
{
4
};
5
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
;
13
}