llvm.org GIT mirror llvm / f0799fe
Test that the eh lowering code can handle constant folded bitcasts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36746 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan Sands 13 years ago
1 changed file(s) with 12 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -enable-eh
1
2 %struct.exception = type { i8, i8, i32, i8*, i8*, i32, i8* }
3 @program_error = external global %struct.exception ; <%struct.exception*> [#uses=1]
4
5 define void @typeinfo() {
6 entry:
7 %eh_typeid = tail call i32 @llvm.eh.typeid.for( i8* getelementptr (%struct.exception* @program_error, i32 0, i32 0) ) ; [#uses=0]
8 ret void
9 }
10
11 declare i32 @llvm.eh.typeid.for(i8*)