Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -emit-llvm < %s | grep "llvm.returnaddress"
      2 // RUN: %clang_cc1 -emit-llvm < %s | grep "llvm.frameaddress"
      3 void* a(unsigned x) {
      4 return __builtin_return_address(0);
      5 }
      6 
      7 void* c(unsigned x) {
      8 return __builtin_frame_address(0);
      9 }
     10