26 lines · plain
1; verify that errors in the LLVM backend during LTO manifest as lld2; errors3 4; RUN: llvm-as %s -o %t.o5; RUN: not wasm-ld --lto-O0 %t.o -o %t2 2>&1 | FileCheck %s6 7target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128-ni:1:10:20"8target triple = "wasm32-unknown-unknown"9 10declare void @callee(ptr nest %p)11 12define void @_start() {13 call void @foo()14 ret void15}16 17; A 'nest' call argument is an unimplemented WebAssembly construct that surfaces18; as a backend diagnostic (DiagnosticInfoUnsupported), exercising the same19; backend-error-to-lld-error path this test verifies.20define void @foo() {21 call void @callee(ptr nest null)22 ret void23}24 25; CHECK: error: {{.*}} WebAssembly hasn't implemented nest arguments26