diff options
Diffstat (limited to 'graphics/asymptote/tests/template/initTest.asy')
-rw-r--r-- | graphics/asymptote/tests/template/initTest.asy | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/graphics/asymptote/tests/template/initTest.asy b/graphics/asymptote/tests/template/initTest.asy new file mode 100644 index 0000000000..7def279138 --- /dev/null +++ b/graphics/asymptote/tests/template/initTest.asy @@ -0,0 +1,23 @@ +access "template/imports/A"(T=int) as a; +unravel a; +access "template/imports/B"(T=A) as b; +unravel b; + +import TestLib; + +StartTest("init"); +A c; +EndTest(); + +StartTest("new"); +struct X { + struct A { + int x=1; + } +} + +X x; + +access "template/imports/C"(T=x.A) as p; + +EndTest(); |