Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / 2004-02-13-BuiltinFrameReturnAddress.c
blob3248c06b0ef7bd777a3961a65027f5644f87aa69
1 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
3 void *test1(void) {
4 // CHECK: call ptr @llvm.returnaddress
5 return __builtin_return_address(1);
7 void *test2(void) {
8 // CHECK: call ptr @llvm.frameaddress
9 return __builtin_frame_address(0);