aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/WebAssembly/export-name.ll
blob: 9941520f21918165a8c1c63e3ddc8e8a6b239863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: llc < %s -asm-verbose=false -wasm-keep-registers | FileCheck %s

target triple = "wasm32-unknown-unknown"

define void @test() #0 {
  ret void
}

declare void @test2() #1


attributes #0 = { "wasm-export-name"="foo" }
attributes #1 = { "wasm-export-name"="bar" }

; CHECK: .export_name test, foo
; CHECK: .export_name test2, bar