
Conversion performed using the script at: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only tests where no manual fixup was required.
11 lines
255 B
C
11 lines
255 B
C
// 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);
|
|
}
|