llvm-for-llvmta/test/Transforms/MetaRenamer/main.ll

17 lines
307 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; Make sure @main is left untouched.
; RUN: opt -metarenamer -S %s | FileCheck %s
; RUN: opt -passes=metarenamer -S %s | FileCheck %s
; CHECK: define void @main
; CHECK: call void @main
define void @main() {
call void @patatino()
ret void
}
define void @patatino() {
call void @main()
ret void
}