aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/java/template_parameters_global_scope_runme.java
blob: a536fe476858fe6406b801e75f0d9948b47c4629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import template_parameters_global_scope.*;

public class template_parameters_global_scope_runme {

  static {
    try {
      System.loadLibrary("template_parameters_global_scope");
    } catch (UnsatisfiedLinkError e) {
      System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
      System.exit(1);
    }
  }

  public static void main(String argv[]) {

    int alloc = 0;

    // Check 1
    alloc = template_parameters_global_scope.Bucket1();
    alloc = template_parameters_global_scope.Bucket2();
    alloc = template_parameters_global_scope.Bucket3();
    alloc = template_parameters_global_scope.Bucket4();
    alloc = template_parameters_global_scope.Bucket5();
    alloc = template_parameters_global_scope.Bucket6();

    // Check 2
    alloc = template_parameters_global_scope.Spade1();
    alloc = template_parameters_global_scope.Spade2();
    alloc = template_parameters_global_scope.Spade3();
    alloc = template_parameters_global_scope.Spade4();
    alloc = template_parameters_global_scope.Spade5();
    alloc = template_parameters_global_scope.Spade6();

    // Check 3
    alloc = template_parameters_global_scope.Ball1();
    alloc = template_parameters_global_scope.Ball2();
    alloc = template_parameters_global_scope.Ball3();
    alloc = template_parameters_global_scope.Ball4();
    alloc = template_parameters_global_scope.Ball5();
    alloc = template_parameters_global_scope.Ball6();

    // Check 4
    alloc = template_parameters_global_scope.Bat1();
    alloc = template_parameters_global_scope.Bat2();
    alloc = template_parameters_global_scope.Bat3();
    alloc = template_parameters_global_scope.Bat4();
    alloc = template_parameters_global_scope.Bat5();
    alloc = template_parameters_global_scope.Bat6();

    // Check 5
    alloc = template_parameters_global_scope.Chair1();
    alloc = template_parameters_global_scope.Chair2();
    alloc = template_parameters_global_scope.Chair3();
    alloc = template_parameters_global_scope.Chair4();
    alloc = template_parameters_global_scope.Chair5();
    alloc = template_parameters_global_scope.Chair6();

    // Check 6
    alloc = template_parameters_global_scope.Table1();
    alloc = template_parameters_global_scope.Table2();
    alloc = template_parameters_global_scope.Table3();
    alloc = template_parameters_global_scope.Table4();
    alloc = template_parameters_global_scope.Table5();
    alloc = template_parameters_global_scope.Table6();

    /*
    alloc = template_parameters_global_scope.rejig1();
    alloc = template_parameters_global_scope.rejig2();
    alloc = template_parameters_global_scope.rejig3();
    alloc = template_parameters_global_scope.rejig4();
    alloc = template_parameters_global_scope.rejig5();
    alloc = template_parameters_global_scope.rejig6();
    */
  }
}