1; RUN: llvm-as < %s | llvm-c-test --module-list-functions | FileCheck %s
2
3define i32 @X() {
4entry:
5  br label %l1
6
7l1:
8  br label %l2
9
10l2:
11  br label %l3
12
13l3:
14  ret i32 1234
15}
16;CHECK: FunctionDefinition: X [#bb=4]
17
18
19define i32 @Z(i32 %a) {
20entry:
21  %0 = tail call i32 @Y(i32 %a)
22  ret i32 %0
23}
24
25;CHECK: FunctionDefinition: Z [#bb=1]
26;CHECK:  calls: Y
27;CHECK:  #isn: 2
28
29declare i32 @Y(i32)
30;CHECK: FunctionDeclaration: Y
31
32