You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.179
Former-commit-id: 67aa10e65b237e1c4537630979ee99ebe1374215
This commit is contained in:
parent
d6bde52373
commit
8625704ad8
20
external/llvm/test/Transforms/Inline/cfg_preserve_test.ll
vendored
Normal file
20
external/llvm/test/Transforms/Inline/cfg_preserve_test.ll
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
; This test ensures that inlining an "empty" function does not destroy the CFG
|
||||
;
|
||||
; RUN: opt < %s -inline -S | FileCheck %s
|
||||
|
||||
define i32 @func(i32 %i) {
|
||||
ret i32 %i
|
||||
}
|
||||
|
||||
|
||||
define i32 @main() {
|
||||
; CHECK-LABEL: define i32 @main()
|
||||
entry:
|
||||
%X = call i32 @func(i32 7)
|
||||
; CHECK-NOT: call
|
||||
; CHECK-NOT: br
|
||||
|
||||
ret i32 %X
|
||||
; CHECK: ret i32 7
|
||||
}
|
||||
|
Reference in New Issue
Block a user