aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/DSGraph/2004-02-13-memcpy.ll
blob: 5760712fdff862913f6714eb893ec294ba7ab178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: analyze %s -datastructure-gc -dsgc-check-flags=X:SMR

declare void %llvm.memcpy(sbyte*, sbyte*, uint, uint)

void %test() {
	%X = alloca int
	%Y = alloca int
	%x = cast int* %X to sbyte*
	%y = cast int* %Y to sbyte*
	store int 4, int* %X
	call void %llvm.memcpy(sbyte* %x, sbyte* %y, uint 4, uint 4)
	ret void
}