summaryrefslogtreecommitdiff
path: root/test/Assembler/2008-09-02-FunctionNotes.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/2008-09-02-FunctionNotes.ll')
-rw-r--r--test/Assembler/2008-09-02-FunctionNotes.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Assembler/2008-09-02-FunctionNotes.ll b/test/Assembler/2008-09-02-FunctionNotes.ll
new file mode 100644
index 0000000000000..761c91e864c4c
--- /dev/null
+++ b/test/Assembler/2008-09-02-FunctionNotes.ll
@@ -0,0 +1,14 @@
+; Test function attributes
+; RUN: llvm-as < %s | llvm-dis | grep inline | count 2
+
+define void @fn1() alwaysinline {
+ ret void
+}
+
+define void @fn2() noinline {
+ ret void
+}
+
+define void @fn3() {
+ ret void
+}