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
Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git]
/
clang
/
test
/
CXX
/
over
/
over.built
/
p14.cpp
blob
ac9ba97e53578e27fd48a42c34d0a55149b32f9e
1
// RUN: %clang_cc1 -std=c++11 -verify %s -Wno-tautological-compare
2
3
template
<
typename T
>
4
void
f
(
int
*
pi
,
T
*
pt
) {
5
(
void
)(
pi
+
3
);
6
(
void
)(
3
+
pi
);
7
(
void
)(
pi
-
3
);
8
(
void
)(
pi
[
3
]);
9
(
void
)(
3
[
pi
]);
10
11
(
void
)(
pt
+
3
);
12
(
void
)(
3
+
pt
);
13
(
void
)(
pt
-
3
);
14
(
void
)(
pt
[
3
]);
15
(
void
)(
3
[
pt
]);
16
}
17
// expected-no-diagnostics