Dan Gohman | f2f6ce6 | 2009-09-11 18:01:28 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -simplify-libcalls -disable-output |
Nick Lewycky | 0efa921 | 2009-07-29 05:17:50 +0000 | [diff] [blame] | 2 | ; 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 | |
| 12 | define i32 @main(i32 %argc, i8** %argv) nounwind { |
| 13 | entry: |
Nick Lewycky | 0efa921 | 2009-07-29 05:17:50 +0000 | [diff] [blame] | 14 | 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 | |
| 20 | declare %struct.__sFILE* @fopen(i8*, i8*) |
| 21 | |
| 22 | declare void @exit(i32) |