mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-08 14:54:42 +00:00
13 lines
211 B
LLVM
13 lines
211 B
LLVM
target triple = "wasm32-unknown-unknown"
|
|
|
|
define weak i32 @weakFn() #0 {
|
|
entry:
|
|
ret i32 2
|
|
}
|
|
|
|
define i32 @exportWeak2() {
|
|
entry:
|
|
ret i32 ptrtoint (i32 ()* @weakFn to i32)
|
|
}
|
|
|
|
@weakGlobal = weak global i32 2
|