summaryrefslogtreecommitdiff
path: root/test/Object/nm-trivial-object.test
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-01-21 05:07:13 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-01-21 05:07:13 +0000
commit281f3901b7b0869929caf8946c1ad1228bc38922 (patch)
treeadfbfb9585048b20c19e0cdfaa6091ac78d8bca8 /test/Object/nm-trivial-object.test
parentacf4a7c0e6f6c88c6ee0201ecd81942e21adb023 (diff)
downloadllvm-281f3901b7b0869929caf8946c1ad1228bc38922.tar.gz
llvm-281f3901b7b0869929caf8946c1ad1228bc38922.tar.bz2
llvm-281f3901b7b0869929caf8946c1ad1228bc38922.tar.xz
Object: Renable the tests now that none of the build bots complain about aliasing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object/nm-trivial-object.test')
-rw-r--r--test/Object/nm-trivial-object.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Object/nm-trivial-object.test b/test/Object/nm-trivial-object.test
new file mode 100644
index 0000000000..6de1780a16
--- /dev/null
+++ b/test/Object/nm-trivial-object.test
@@ -0,0 +1,19 @@
+RUN: llvm-nm %p/TestObjectFiles/trivial-object-test.coff-i386 \
+RUN: | FileCheck %s -check-prefix COFF
+RUN: llvm-nm %p/TestObjectFiles/trivial-object-test.coff-x86-64 \
+RUN: | FileCheck %s -check-prefix COFF
+RUN: llvm-nm %p/TestObjectFiles/trivial-object-test.elf-i386 \
+RUN: | FileCheck %s -check-prefix ELF
+RUN: llvm-nm %p/TestObjectFiles/trivial-object-test.elf-x86-64 \
+RUN: | FileCheck %s -check-prefix ELF
+
+COFF: 00000000 d .data
+COFF: 00000000 t .text
+COFF: 00000000 d L{{_?}}.str
+COFF: U {{_?}}SomeOtherFunction
+COFF: 00000000 T {{_?}}main
+COFF: U {{_?}}puts
+
+ELF: U SomeOtherFunction
+ELF: 00000000 T main
+ELF: U puts