summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/nested_template_base_runme.py
blob: 3d54b8391b3c77cce843f15dd3c614c2f300198d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from nested_template_base import *


ois = InnerS(123);
oic = InnerC();

# Check base method is available
if (oic.outer(ois).val != 123):
  raise RuntimeError("Wrong value calling outer");

# Check non-derived class using base class
if (oic.innerc().outer(ois).val != 123):
  raise RuntimeError("Wrong value calling innerc");