File: Test.java

package info (click to toggle)
camljava 0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 344 kB
  • sloc: ansic: 844; ml: 336; java: 302; makefile: 97
file content (23 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Test {
  static void f()
  {
    System.out.println("f"); 
  }
  static int g(int x, int y)
  {
    System.out.println("g " + x + " " + y); 
    return x + y;
  }
  static int a;
  int b;
  int h() {
    System.out.println("h");
    return b;
  }
  static int k(Testcb cb, int x)
  {
    System.out.println("k " + x);
    cb.f();
    return cb.g(x); 
  }
}