summaryrefslogtreecommitdiff
path: root/graphics/asymptote/tests/frames/stat.asy
blob: d366b193e0d641e52ba746bf52797e0a7cac9d12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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();