mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8098 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4bd4aa5e3c
commit
7bf617ab02
15
test/Transforms/Inline/cfg_preserve_test.ll
Normal file
15
test/Transforms/Inline/cfg_preserve_test.ll
Normal file
@ -0,0 +1,15 @@
|
||||
; This test ensures that inlining an "empty" function does not destroy the CFG
|
||||
;
|
||||
; RUN: as < %s | opt -inline | dis | not grep br
|
||||
|
||||
int %func(int %i) {
|
||||
ret int %i
|
||||
}
|
||||
|
||||
declare void %bar()
|
||||
|
||||
int %main(int %argc) {
|
||||
Entry:
|
||||
%X = call int %func(int 7)
|
||||
ret int %X
|
||||
}
|
Loading…
Reference in New Issue
Block a user