summaryrefslogtreecommitdiff
path: root/tests/cmdline/cmd_showbc_opt.py
blob: 02785860d9eeebce73272b913e6ec771553e42fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# cmdline: -v -v
# test printing of bytecode when it's optimised away


def f0():
    return 0
    print(1)


def f1(x):
    if x:
        return
        print(1)
    print(2)


def f2(x):
    raise Exception
    print(1)


def f3(x):
    while x:
        break
        print(1)
    print(2)


def f4(x):
    while x:
        continue
        print(1)
    print(2)