aboutsummaryrefslogtreecommitdiff
path: root/test/data/nested-fns.ll
blob: c29a8474571a72d1ecb03854aef2e8d89fcca0d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
define i64 @fn1.fn2.fn1() {
entry:
  ret i64 42
}

define i64 @fn1.fn2() {
entry:
  %call = call i64 @fn1.fn2.fn1()
  %call1 = call i64 @fn1.fn2.fn1()
  %mul = mul i64 %call, %call1
  ret i64 %mul
}

define i64 @fn1() {
entry:
  %call = call i64 @fn1.fn2()
  ret i64 %call
}