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
/
CodeGen
/
2007-02-16-VoidPtrDiff.c
blob
c9f6714c253cce9d8ebda942854c88df362730e2
1
// RUN: %clang_cc1 %s -emit-llvm -o -
2
3
void
foo
(
void
*
ptr
,
int
test
) {
4
(
ptr
- ((
void
*)
test
+
0x2000
));
5
}