summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Alpha/weak.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Alpha/weak.ll')
-rw-r--r--llvm/test/CodeGen/Alpha/weak.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Alpha/weak.ll b/llvm/test/CodeGen/Alpha/weak.ll
new file mode 100644
index 00000000000..f39360b8fc0
--- /dev/null
+++ b/llvm/test/CodeGen/Alpha/weak.ll
@@ -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()
OpenPOWER on IntegriCloud