Sign in
rust
/
rust-lang
/
llvm-project
/
ae9c45b112598aa9a411ffe4cebd213d7f9186b6
/
.
/
clang
/
test
/
CodeGen
/
2004-02-13-BuiltinFrameReturnAddress.c
blob: 3248c06b0ef7bd777a3961a65027f5644f87aa69 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
void
*
test1
(
void
)
{
// CHECK: call ptr @llvm.returnaddress
return
__builtin_return_address
(
1
);
}
void
*
test2
(
void
)
{
// CHECK: call ptr @llvm.frameaddress
return
__builtin_frame_address
(
0
);
}