aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/FunctionResolve/2003-05-31-InternalDecl.ll
blob: ab41e2ec821854f3cfa7b96e365e6e6c9b951fc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: if as < %s | opt -funcresolve | dis | grep declare
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi

declare void %test(...)

int %callee() {
  call void(...)* %test(int 5)
  ret int 2
}

internal void %test(int) {
  ret void
}