From 468829b8830c9b30d9a597541b9ada068be20c7f Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 2 Sep 2008 20:58:16 +0000 Subject: [PATCH] Function notes tests. llvm-svn: 55648 --- test/Assembler/2008-09-02-FunctionNotes.ll | 11 +++++++++++ test/Assembler/2008-09-02-FunctionNotes2.ll | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 test/Assembler/2008-09-02-FunctionNotes.ll create mode 100644 test/Assembler/2008-09-02-FunctionNotes2.ll 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 +} +