summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/tests/frames/stat.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/tests/frames/stat.asy')
-rw-r--r--Build/source/utils/asymptote/tests/frames/stat.asy14
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/tests/frames/stat.asy b/Build/source/utils/asymptote/tests/frames/stat.asy
new file mode 100644
index 00000000000..d366b193e0d
--- /dev/null
+++ b/Build/source/utils/asymptote/tests/frames/stat.asy
@@ -0,0 +1,14 @@
+import TestLib;
+StartTest("stat");
+struct T {
+ int x;
+ static void f(T t) {
+ t.x=2;
+ }
+}
+
+T t=new T;
+assert(t.x==0);
+T.f(t);
+assert(t.x==2);
+EndTest();