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
/
relax.c
blob
b9ed5031b4ed34ad8d53abf3aa66da56e9a5f15e
1
// REQUIRES: x86-registered-target
2
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-obj %s -mrelocation-model pic -o %t
3
// RUN: llvm-readobj -r %t | FileCheck %s
4
5
// CHECK: R_X86_64_REX_GOTPCRELX foo
6
7
extern
int
foo
;
8
int
*
f
(
void
) {
9
return
&
foo
;
10
}