blob: 7af0a261d4366dfa25046fbf33dd4557ff376731 [file] [log] [blame]
Dan Gohmanf2f6ce62009-09-11 18:01:28 +00001; RUN: opt < %s -simplify-libcalls -disable-output
Nick Lewycky0efa9212009-07-29 05:17:50 +00002; PR4641
3
4 %struct.__sFILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct.__sbuf, i8*, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64, %struct.pthread_mutex*, %struct.pthread*, i32, i32, %union.anon }
5 %struct.__sbuf = type { i8*, i32, [4 x i8] }
6 %struct.pthread = type opaque
7 %struct.pthread_mutex = type opaque
8 %union.anon = type { i64, [120 x i8] }
9@.str13 = external constant [2 x i8] ; <[2 x i8]*> [#uses=1]
10@.str14 = external constant [2 x i8] ; <[2 x i8]*> [#uses=1]
11
12define i32 @main(i32 %argc, i8** %argv) nounwind {
13entry:
Nick Lewycky0efa9212009-07-29 05:17:50 +000014 call void @exit(i32 0) nounwind
15 %cond392 = select i1 undef, i8* getelementptr ([2 x i8]* @.str13, i32 0, i32 0), i8* getelementptr ([2 x i8]* @.str14, i32 0, i32 0) ; <i8*> [#uses=1]
16 %call393 = call %struct.__sFILE* @fopen(i8* undef, i8* %cond392) nounwind ; <%struct.__sFILE*> [#uses=0]
17 unreachable
18}
19
20declare %struct.__sFILE* @fopen(i8*, i8*)
21
22declare void @exit(i32)