aboutsummaryrefslogtreecommitdiffstats
path: root/bcel-builder/testdata/SimpleVarargs.java
diff options
context:
space:
mode:
Diffstat (limited to 'bcel-builder/testdata/SimpleVarargs.java')
-rw-r--r--bcel-builder/testdata/SimpleVarargs.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/bcel-builder/testdata/SimpleVarargs.java b/bcel-builder/testdata/SimpleVarargs.java
new file mode 100644
index 000000000..3994d2cfb
--- /dev/null
+++ b/bcel-builder/testdata/SimpleVarargs.java
@@ -0,0 +1,12 @@
+
+public class SimpleVarargs {
+ public static void main(String[] argv) {
+ callfoo("a","b","c","d","e");
+ }
+
+ public static void callfoo(Object... args) {
+ for (int i = 0 ; i<args.length;i++) {
+ System.err.println(args[i]);
+ }
+ }
+}