llvm-for-llvmta/test/Transforms/HelloNew/helloworld.ll

13 lines
211 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: opt -disable-output -passes=helloworld %s 2>&1 | FileCheck %s
; CHECK: {{^}}foo{{$}}
define i32 @foo() {
%a = add i32 2, 3
ret i32 %a
}
; CHECK-NEXT: {{^}}bar{{$}}
define void @bar() {
ret void
}