blob: 713a876536dc81b1c24d56e06941658240b77ffc [file] [log] [blame]
Chris Lattnerd52e1b02006-08-27 22:47:14 +00001; RUN: llvm-as < %s | opt -analyze -datastructure-gc -dsgc-dspass=td -dsgc-check-flags=Ptr:HR
Chris Lattnerca291782003-06-29 22:35:55 +00002
3
4
5int %main() {
6 call void %A()
7 call void %B()
8 ret int 0
9}
10
11internal void %A() {
12 %V = malloc int
13 call void %Callee(int* %V)
14 ret void
15}
16
17internal void %B() {
18 %V = malloc int
19 call void %Callee(int* %V)
20 ret void
21}
22
23internal void %Callee(int* %Ptr) {
24 load int* %Ptr
25 ret void
26}