diff options
Diffstat (limited to 'Build/source/utils/asymptote/tests/frames/stat2.asy')
-rw-r--r-- | Build/source/utils/asymptote/tests/frames/stat2.asy | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/tests/frames/stat2.asy b/Build/source/utils/asymptote/tests/frames/stat2.asy new file mode 100644 index 00000000000..ea5863b081a --- /dev/null +++ b/Build/source/utils/asymptote/tests/frames/stat2.asy @@ -0,0 +1,17 @@ +import TestLib; +StartTest("stat2"); +struct T { + int x; + static void f(T t) { + static void g(T t) { + t.x=2; + } + g(t); + } +} + +T t=new T; +assert(t.x==0); +T.f(t); +assert(t.x==2); +EndTest(); |