Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1  %s -emit-llvm -o - | FileCheck %s
      2 
      3 void *test1() {
      4   // CHECK: call i8* @llvm.returnaddress
      5   return __builtin_return_address(1);
      6 }
      7 void *test2() {
      8   // CHECK: call i8* @llvm.frameaddress
      9   return __builtin_frame_address(0);
     10 }
     11