Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
6f0bca7a0ababdfe141f7b1c0435f4ff71d1bff5
/
.
/
test
/
CodeGen
/
2004-02-13-BuiltinFrameReturnAddress.c
blob: 8c0b7ba8fff053a4fd9e58c7ca8cbc2e2272cd07 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
void
*
test1
()
{
// CHECK: call i8* @llvm.returnaddress
return
__builtin_return_address
(
1
);
}
void
*
test2
()
{
// CHECK: call i8* @llvm.frameaddress
return
__builtin_frame_address
(
0
);
}