xref: /llvm-project/llvm/test/CodeGen/Mips/weak.ll (revision ae26f50aea4ef1a6c7058019f0db11a91bbcdade)
1; RUN: llc -mtriple=mips < %s | FileCheck %s
2
3@t = common global ptr null, align 4
4
5define void @f() nounwind {
6entry:
7  store ptr @test_weak, ptr @t, align 4
8  ret void
9}
10
11; CHECK: .weak test_weak
12declare extern_weak i32 @test_weak(...)
13