diff options
author | 2011-08-28 22:41:38 -0700 | |
---|---|---|
committer | 2011-08-29 09:50:10 -0700 | |
commit | 9f30b38d74990286ce27c3a45368f73dbe3638f0 (patch) | |
tree | 81bddd7b70e4b58aadce258cc25bba64de030deb /test/StaticLeafMethods/StaticLeafMethods.java | |
parent | 4417536522fd2a9d8215d8672331984769c9520b (diff) |
Externalize test code
Change-Id: Iab19397c7a72fb9a3ca63bfd0bc4eaf1a98138ba
Diffstat (limited to 'test/StaticLeafMethods/StaticLeafMethods.java')
-rw-r--r-- | test/StaticLeafMethods/StaticLeafMethods.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/StaticLeafMethods/StaticLeafMethods.java b/test/StaticLeafMethods/StaticLeafMethods.java new file mode 100644 index 0000000000..72aed8563c --- /dev/null +++ b/test/StaticLeafMethods/StaticLeafMethods.java @@ -0,0 +1,39 @@ +// Copyright 2011 Google Inc. All Rights Reserved. + +class StaticLeafMethods { + static void nop() { + } + static byte identity(byte x) { + return x; + } + static int identity(int x) { + return x; + } + static int sum(int a, int b) { + return a + b; + } + static int sum(int a, int b, int c) { + return a + b + c; + } + static int sum(int a, int b, int c, int d) { + return a + b + c + d; + } + static int sum(int a, int b, int c, int d, int e) { + return a + b + c + d + e; + } + static double identity(double x) { + return x; + } + static double sum(double a, double b) { + return a + b; + } + static double sum(double a, double b, double c) { + return a + b + c; + } + static double sum(double a, double b, double c, double d) { + return a + b + c + d; + } + static double sum(double a, double b, double c, double d, double e) { + return a + b + c + d + e; + } +} |