diff options
Diffstat (limited to 'test/ProtoCompare/ProtoCompare.java')
-rw-r--r-- | test/ProtoCompare/ProtoCompare.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ProtoCompare/ProtoCompare.java b/test/ProtoCompare/ProtoCompare.java new file mode 100644 index 0000000000..988e07aee2 --- /dev/null +++ b/test/ProtoCompare/ProtoCompare.java @@ -0,0 +1,8 @@ +// Copyright 2011 Google Inc. All Rights Reserved. + +class ProtoCompare { + int m1(short x, int y, long z) { return x + y + (int)z; } + int m2(short x, int y, long z) { return x + y + (int)z; } + int m3(long x, int y, short z) { return (int)x + y + z; } + long m4(long x, int y, short z) { return x + y + z; } +} |