summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/tests/frames/stat2.asy
blob: ea5863b081af000e2432050742f5cf1986c46b90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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();