forked from OSchip/llvm-project
parent
6d5693566f
commit
58dfca7d4a
|
@ -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