aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary D. Gregory <ggregory@apache.org>2017-10-16 20:32:38 +0000
committerGary D. Gregory <ggregory@apache.org>2017-10-16 20:32:38 +0000
commitd700649c1748cdec25ce871925d80a1356e3147b (patch)
tree1df4d21b14cd5d18f158b2f2cd05e5afa6b3ef00
parent0d33e877b1642b1bb630415304b8d01de2ce427e (diff)
downloadapache-commons-bcel-d700649c1748cdec25ce871925d80a1356e3147b.tar.gz
[BCEL-295] Fix local variable live range length; add test case. This closes #17.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/bcel/trunk@1812324 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/test/java/org/apache/bcel/data/PLSETestClass2.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/java/org/apache/bcel/data/PLSETestClass2.java b/src/test/java/org/apache/bcel/data/PLSETestClass2.java
new file mode 100644
index 00000000..b64d3d87
--- /dev/null
+++ b/src/test/java/org/apache/bcel/data/PLSETestClass2.java
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.bcel.data;
+
+public class PLSETestClass2
+{
+ public static void main(String args[]) {
+ int t = 0;
+
+ for (int i = 0; i < 100; i++) {
+ t += i;
+ }
+ }
+}