X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=test%2FOther%2F2010-05-06-Printer.ll;h=dcc0e752bb5adbeecbc9e29deab85846a609ed9f;hp=e57b9825b3347868ee5798d5cc4211cab8dcbc2d;hb=b85410e4f3ee9fc4b416fbc5f5a1c271754ea927;hpb=4b0bd158058240d73a4848891746e0d5954bbeb3 diff --git a/test/Other/2010-05-06-Printer.ll b/test/Other/2010-05-06-Printer.ll index e57b9825b33..dcc0e752bb5 100644 --- a/test/Other/2010-05-06-Printer.ll +++ b/test/Other/2010-05-06-Printer.ll @@ -1,7 +1,19 @@ ; RUN: llc -O2 -print-after-all < %s 2>/dev/null +; RUN: llc -O2 -print-after-all < %s 2>&1 | FileCheck %s --check-prefix=ALL +; RUN: llc -O2 -print-after-all -filter-print-funcs=foo < %s 2>&1 | FileCheck %s --check-prefix=FOO ; REQUIRES: default_triple - define void @tester(){ ret void } +define void @foo(){ + ret void +} + +;ALL: define void @tester() +;ALL: define void @foo() +;ALL: ModuleID = + +;FOO: IR Dump After +;FOO-NEXT: define void @foo() +;FOO-NOT: define void @tester