Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -emit-llvm < %s | grep "llvm.returnaddress" |
2 | // RUN: %clang_cc1 -emit-llvm < %s | grep "llvm.frameaddress" | ||||
Eli Friedman | 256f77e | 2008-05-20 08:59:34 +0000 | [diff] [blame] | 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 | } |