xref: /llvm-project/lld/test/ELF/lto/undef-mixed.ll (revision 7b1d793713cf9ed9ab719f33b332f9c66a1fc5cc)
1; REQUIRES: x86
2; RUN: llvm-mc %p/Inputs/undef-mixed.s -o %t.o -filetype=obj -triple=x86_64-pc-linux
3; RUN: llvm-as %s -o %t2.o
4; RUN: ld.lld %t2.o %t.o -o %t.so -shared
5; RUN: llvm-readobj --symbols %t.so | FileCheck %s
6
7; CHECK:      Name: bar
8; CHECK-NEXT: Value:
9; CHECK-NEXT: Size: 0
10; CHECK-NEXT: Binding: Global
11; CHECK-NEXT: Type: None
12; CHECK-NEXT: Other: 0
13; CHECK-NEXT: Section: .text
14
15target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
16target triple = "x86_64-unknown-linux-gnu"
17
18declare void @bar()
19define void @foo() {
20  call void @bar()
21  ret void
22}
23