// RUN: clang -emit-llvm < %s
void* a(unsigned x) {
return __builtin_return_address(0);
}

void* c(unsigned x) {
return __builtin_frame_address(0);
}
// RUN: clang -emit-llvm < %s
void* a(unsigned x) {
return __builtin_return_address(0);
}

void* c(unsigned x) {
return __builtin_frame_address(0);
}

// RUN: clang -emit-llvm < %s | grep "llvm.returnaddress"
// RUN: clang -emit-llvm < %s | grep "llvm.frameaddress"
void* a(unsigned x) {
return __builtin_return_address(0);
}

void* c(unsigned x) {
return __builtin_frame_address(0);
}

Fix test (it was incorrectly succeeding).
Fix test (it was incorrectly succeeding).



git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@51310 91177308-0d34-0410-b5e6-96231b3b80d8
