1/*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16declare function print(arg:any):string;
17
18function foo1() {
19    print("foo1");
20    foo2()
21}
22
23function foo2() {
24    print("foo2");
25    foo3()
26}
27
28function foo3() {
29    print("foo3");
30    foo4()
31}
32
33function foo4() {
34    print("foo4");
35    foo5()
36}
37
38function foo5() {
39    print("foo5");
40    foo6()
41}
42
43function foo6() {
44    print("foo6");
45}
46
47foo1();
48
49