summaryrefslogtreecommitdiff
path: root/test/Analysis/Andersens/2008-12-27-BuiltinWrongType.ll
blob: da6751139f2eaad4f91f1c7426ed9cd926cfcd20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: opt < %s -anders-aa
; PR3262

@.str15 = external global [3 x i8]              ; <[3 x i8]*> [#uses=1]

declare i8* @strtok(...)
declare i8* @memmove(...)

define void @test1(i8* %want1) nounwind {
entry:
        %0 = call i8* (...)* @strtok(i32 0, i8* getelementptr ([3 x i8]* @.str15, i32 0, i32 0)) nounwind               ; <i8*> [#uses=0]
        unreachable
}

define void @test2() nounwind {
entry:
        %0 = call i8* (...)* @memmove()
        unreachable
}