Copy ARM's weak symbol test
authorAndrew Lenharth <andrewl@lenharth.org>
Thu, 7 Dec 2006 17:37:54 +0000 (17:37 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Thu, 7 Dec 2006 17:37:54 +0000 (17:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32307 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/Alpha/weak.ll [new file with mode: 0644]

diff --git a/test/CodeGen/Alpha/weak.ll b/test/CodeGen/Alpha/weak.ll
new file mode 100644 (file)
index 0000000..f39360b
--- /dev/null
@@ -0,0 +1,18 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep .weak.*f &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep .weak.*h
+
+implementation   ; Functions:
+
+weak uint %f() {
+entry:
+       unreachable
+}
+
+void %g() {
+entry:
+        tail call void %h( )
+        ret void
+}
+
+declare extern_weak void %h()