aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/private.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/private.ll')
-rw-r--r--test/Assembler/private.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Assembler/private.ll b/test/Assembler/private.ll
new file mode 100644
index 0000000..3714572
--- /dev/null
+++ b/test/Assembler/private.ll
@@ -0,0 +1,9 @@
+; Test to make sure that the 'private' tag is not lost!
+;
+; RUN: llvm-as < %s | llvm-dis | grep private
+
+declare void @foo()
+
+define private void @foo() {
+ ret void
+}