1 ; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
2 ; CHECK: Call graph node <<null function>><<{{.*}}>> #uses=0
3 ; CHECK-NEXT: CS<None> calls function 'cast_only'
4 ; CHECK-NEXT: CS<None> calls function 'llvm.lifetime.start.p0i8'
6 ; CHECK-NEXT: Call graph node for function: 'cast_only'<<{{.*}}>> #uses=1
8 ; CHECK-NEXT: Call graph node for function: 'llvm.lifetime.start.p0i8'<<{{.*}}>> #uses=1
10 ; CHECK-NEXT: Call graph node for function: 'used_by_lifetime'<<{{.*}}>> #uses=0
13 define internal void @used_by_lifetime() {
15 %c = bitcast void()* @used_by_lifetime to i8*
16 call void @llvm.lifetime.start.p0i8(i64 4, i8* %c)
20 define internal void @cast_only() {
22 %c = bitcast void()* @cast_only to i8*
26 declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture)