xref: /llvm-project/llvm/test/CodeGen/Mips/frame-address-err.ll (revision ae26f50aea4ef1a6c7058019f0db11a91bbcdade)
1; RUN: not llc -mtriple=mips < %s 2>&1 | FileCheck %s
2
3declare ptr @llvm.frameaddress(i32) nounwind readnone
4
5define ptr @f() nounwind {
6entry:
7  %0 = call ptr @llvm.frameaddress(i32 1)
8  ret ptr %0
9
10; CHECK: error: return address can be determined only for current frame
11}
12