diff --git a/test/Assembler/2008-09-02-FunctionNotes.ll b/test/Assembler/2008-09-02-FunctionNotes.ll new file mode 100644 index 00000000000..2751b6419da --- /dev/null +++ b/test/Assembler/2008-09-02-FunctionNotes.ll @@ -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 index 00000000000..7740bdd596c --- /dev/null +++ b/test/Assembler/2008-09-02-FunctionNotes2.ll @@ -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 +} +