summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/overload_subtype_runme.py
blob: 3f32a5583de65ef6e189d40a308e459aa03960b8 (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"