[llvm-commits] [llvm] r55648 - in /llvm/trunk/test/Assembler: 2008-09-02-FunctionNotes.ll 2008-09-02-FunctionNotes2.ll
Devang Patel
dpatel at apple.com
Tue Sep 2 13:58:16 PDT 2008
Author: dpatel
Date: Tue Sep 2 15:58:16 2008
New Revision: 55648
URL: http://llvm.org/viewvc/llvm-project?rev=55648&view=rev
Log:
Function notes tests.
Added:
llvm/trunk/test/Assembler/2008-09-02-FunctionNotes.ll
llvm/trunk/test/Assembler/2008-09-02-FunctionNotes2.ll
Added: llvm/trunk/test/Assembler/2008-09-02-FunctionNotes.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/2008-09-02-FunctionNotes.ll?rev=55648&view=auto
==============================================================================
--- llvm/trunk/test/Assembler/2008-09-02-FunctionNotes.ll (added)
+++ llvm/trunk/test/Assembler/2008-09-02-FunctionNotes.ll Tue Sep 2 15:58:16 2008
@@ -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
+}
+
Added: llvm/trunk/test/Assembler/2008-09-02-FunctionNotes2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/2008-09-02-FunctionNotes2.ll?rev=55648&view=auto
==============================================================================
--- llvm/trunk/test/Assembler/2008-09-02-FunctionNotes2.ll (added)
+++ llvm/trunk/test/Assembler/2008-09-02-FunctionNotes2.ll Tue Sep 2 15:58:16 2008
@@ -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
+}
+
More information about the llvm-commits
mailing list