llvm-project
13 строк · 300.0 Байт
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
2# RUN: wasm-ld --export=get_handle %t.o -o %t.wasm
3
4.globl get_handle
5get_handle:
6.functype get_handle () -> (i32)
7i32.const __dso_handle
8end_function
9
10.globl _start
11_start:
12.functype _start () -> ()
13end_function
14