summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/Transforms/PruneEH/recursivetest.llx
blob: 8a966bb21ee330b8d4b27d60c41405fe5594cdf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: as < %s | opt -prune-eh | dis | not grep invoke

implementation

internal int %foo() {
	invoke int %foo() to label %Normal except label %Except
Normal:
	ret int 12
Except:
	ret int 123
}

int %caller() {
	invoke int %foo() to label %Normal except label %Except
Normal:
	ret int 0
Except:
	ret int 1
}
OpenPOWER on IntegriCloud