summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/overload_subtype_runme.py
blob: b02e62ff3cf032c1422df6a6211bc92b8cdc9e80 (plain)
1
2
3
4
5
6
7
8
9
10
from overload_subtype import *

f = Foo()
b = Bar()

if spam(f) != 1:
    raise RuntimeError("foo")

if spam(b) != 2:
    raise RuntimeError("bar")