aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/Inline/cfg_preserve_test.ll
blob: 83179a045c4e2b594e5002f03ff1cba70242b025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}