diff options
-rw-r--r-- | test/Assembler/2008-09-02-FunctionNotes.ll | 11 | ||||
-rw-r--r-- | test/Assembler/2008-09-02-FunctionNotes2.ll | 7 |
2 files changed, 18 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 0000000000..2751b6419d --- /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 0000000000..7740bdd596 --- /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 +} + |