Argyrios Kyrtzidis | c577a0e | 2008-06-12 12:40:02 +0000 | [diff] [blame] | 1 | // RUN: clang -emit-llvm < %s | grep "llvm.returnaddress" && |
Eli Friedman | a8ea76a | 2008-05-20 09:04:19 +0000 | [diff] [blame] | 2 | // RUN: clang -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 | } |