opnsense-src/test/CodeGen/builtin-stackaddress.c

10 lines
245 B
C
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -emit-llvm < %s | grep "llvm.returnaddress"
// RUN: %clang_cc1 -emit-llvm < %s | grep "llvm.frameaddress"
2009-06-02 13:58:47 -04:00
void* a(unsigned x) {
return __builtin_return_address(0);
}
void* c(unsigned x) {
return __builtin_frame_address(0);
}