1 ; RUN: not llc < %s -asm-verbose=false 2>&1 | FileCheck %s
3 target triple = "wasm32-unknown-unknown"
5 ; This tests the implementation of __builtin_return_address on the unknown OS.
6 ; Since this is not implemented, it should fail.
8 ; CHECK: Non-Emscripten WebAssembly hasn't implemented __builtin_return_address
9 define ptr @test_returnaddress() {
10 %r = call ptr @llvm.returnaddress(i32 0)
14 ; LLVM represents __builtin_return_address as call to this function in IR.
15 declare ptr @llvm.returnaddress(i32 immarg)