summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/2004-02-08-UnwindSupport.llx
blob: 6e57fbc2095d4371d612d38319f6a6eb5ad8d2da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llvm-upgrade < %s | llvm-as | llc -enable-correct-eh-support

int %test() {
  unwind
}

int %main() {
	%X = invoke int %test() to label %cont except label %EH
cont:
	ret int 1
EH:
	ret int 0
}