llvm-project/clang/test/CodeGen/2004-02-13-BuiltinFrameRetu...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
247 B
C
Raw Normal View History

// 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);
}