mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 05:55:43 -04:00
11 lines
247 B
C
11 lines
247 B
C
// 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);
|
|
}
|