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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
2004-02-13-BuiltinFrameReturnAddress.c
blob
3248c06b0ef7bd777a3961a65027f5644f87aa69
1
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2
3
void
*
test1
(
void
) {
4
// CHECK: call ptr @llvm.returnaddress
5
return
__builtin_return_address
(
1
);
6
}
7
void
*
test2
(
void
) {
8
// CHECK: call ptr @llvm.frameaddress
9
return
__builtin_frame_address
(
0
);
10
}