reapply my strstr optimization. I have reproduced the x86-64 bootstrap
[oota-llvm.git] / test / Analysis / Andersens / 2008-12-27-BuiltinWrongType.ll
1 ; RUN: opt < %s -anders-aa
2 ; PR3262
3
4 @.str15 = external global [3 x i8]              ; <[3 x i8]*> [#uses=1]
5
6 declare i8* @strtok(...)
7 declare i8* @memmove(...)
8
9 define void @test1(i8* %want1) nounwind {
10 entry:
11         %0 = call i8* (...)* @strtok(i32 0, i8* getelementptr ([3 x i8]* @.str15, i32 0, i32 0)) nounwind               ; <i8*> [#uses=0]
12         unreachable
13 }
14
15 define void @test2() nounwind {
16 entry:
17         %0 = call i8* (...)* @memmove()
18         unreachable
19 }