blob: e5635ab4758e776c67d1073b4c5f16612f6f162d [file] [log] [blame]
Matt Beaumont-Gay11f99872011-10-31 23:56:52 +00001RUN: llvm-nm %p/Inputs/trivial-object-test.coff-i386 \
Michael J. Spencerdb260732011-01-20 06:39:15 +00002RUN: | FileCheck %s -check-prefix COFF
Matt Beaumont-Gay11f99872011-10-31 23:56:52 +00003RUN: llvm-nm %p/Inputs/trivial-object-test.coff-x86-64 \
Michael J. Spencerdb260732011-01-20 06:39:15 +00004RUN: | FileCheck %s -check-prefix COFF
Matt Beaumont-Gay11f99872011-10-31 23:56:52 +00005RUN: llvm-nm %p/Inputs/trivial-object-test.elf-i386 \
Michael J. Spencerdb260732011-01-20 06:39:15 +00006RUN: | FileCheck %s -check-prefix ELF
Matt Beaumont-Gay11f99872011-10-31 23:56:52 +00007RUN: llvm-nm %p/Inputs/trivial-object-test.elf-x86-64 \
Michael J. Spencerdb260732011-01-20 06:39:15 +00008RUN: | FileCheck %s -check-prefix ELF
Danil Malyshevb0436a72011-11-29 17:40:10 +00009RUN: llvm-nm %p/Inputs/trivial-object-test.macho-i386 \
10RUN: | FileCheck %s -check-prefix macho
11RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \
12RUN: | FileCheck %s -check-prefix macho64
Michael J. Spencerdb260732011-01-20 06:39:15 +000013
14COFF: 00000000 d .data
15COFF: 00000000 t .text
16COFF: 00000000 d L{{_?}}.str
17COFF: U {{_?}}SomeOtherFunction
18COFF: 00000000 T {{_?}}main
19COFF: U {{_?}}puts
20
21ELF: U SomeOtherFunction
22ELF: 00000000 T main
23ELF: U puts
Danil Malyshevb0436a72011-11-29 17:40:10 +000024
25
26macho: 00000000 U _SomeOtherFunction
27macho: 00000000 s _main
28macho: 00000000 U _puts
29
30macho64: 00000028 s L_.str
31macho64: 00000000 u _SomeOtherFunction
32macho64: 00000000 s _main
33macho64: 00000000 u _puts