summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/SPARC/2009-08-28-WeakLinkage.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/SPARC/2009-08-28-WeakLinkage.ll')
-rw-r--r--test/CodeGen/SPARC/2009-08-28-WeakLinkage.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/2009-08-28-WeakLinkage.ll b/test/CodeGen/SPARC/2009-08-28-WeakLinkage.ll
new file mode 100644
index 0000000..0167d32
--- /dev/null
+++ b/test/CodeGen/SPARC/2009-08-28-WeakLinkage.ll
@@ -0,0 +1,6 @@
+; RUN: llc -march=sparc < %s | grep weak
+
+define weak i32 @func() nounwind {
+entry:
+ ret i32 0
+}
OpenPOWER on IntegriCloud