1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/Object/X86/nm-macho.s
Rafael Espindola 547db2d2a9 Common symbols are not undefined, at least for ObjectFile.
They are implemented like that in some object formats, but for the interface
provided by lib/Object, SF_Undefined and SF_Common are different things.

This matches the ELF and COFF implementation and fixes llvm-nm for MachO.

llvm-svn: 241587
2015-07-07 14:26:39 +00:00

10 lines
192 B
ArmAsm

// RUN: llvm-mc %s -o %t -filetype=obj -triple=x86_64-apple-darwin
// RUN: llvm-nm -n %t | FileCheck %s
// CHECK: 0000000000000000 t _f
// CHECK: 0000000000000004 C _a
_f:
retq
.comm _a,4