Function notes tests.
authorDevang Patel <dpatel@apple.com>
Tue, 2 Sep 2008 20:58:16 +0000 (20:58 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 2 Sep 2008 20:58:16 +0000 (20:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55648 91177308-0d34-0410-b5e6-96231b3b80d8

test/Assembler/2008-09-02-FunctionNotes.ll [new file with mode: 0644]
test/Assembler/2008-09-02-FunctionNotes2.ll [new file with mode: 0644]

diff --git a/test/Assembler/2008-09-02-FunctionNotes.ll b/test/Assembler/2008-09-02-FunctionNotes.ll
new file mode 100644 (file)
index 0000000..2751b64
--- /dev/null
@@ -0,0 +1,11 @@
+; Test function notes
+; RUN: llvm-as < %s -f -o /dev/null
+
+define void @fn1() notes(inline=always) {
+  ret void
+}
+
+define void @fn2() notes(inline=never) {
+  ret void
+}
+
diff --git a/test/Assembler/2008-09-02-FunctionNotes2.ll b/test/Assembler/2008-09-02-FunctionNotes2.ll
new file mode 100644 (file)
index 0000000..7740bdd
--- /dev/null
@@ -0,0 +1,7 @@
+; Test function notes
+; RUN: not llvm-as  %s |& grep "only one inline note" 
+
+define void @fn1() notes(inline=always,inline=never) {
+  ret void
+}
+