[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/PrivateCall.java
Alkis Evlogimenos
alkis at cs.uiuc.edu
Tue Feb 15 17:22:37 PST 2005
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
PrivateCall.java added (r1.1)
---
Log message:
Add test for private calls. These should be inlined and not appear in the vtable
---
Diffs of the changes: (+17 -0)
PrivateCall.java | 17 +++++++++++++++++
1 files changed, 17 insertions(+)
Index: llvm-java/test/Programs/SingleSource/UnitTests/PrivateCall.java
diff -c /dev/null llvm-java/test/Programs/SingleSource/UnitTests/PrivateCall.java:1.1
*** /dev/null Tue Feb 15 19:22:36 2005
--- llvm-java/test/Programs/SingleSource/UnitTests/PrivateCall.java Tue Feb 15 19:22:26 2005
***************
*** 0 ****
--- 1,17 ----
+ public class PrivateCall
+ {
+ private int a;
+
+ public PrivateCall(int i) {
+ a = i;
+ }
+
+ private int foo(int i) {
+ return i * i / a;
+ }
+
+ public static void main(String[] args) {
+ PrivateCall p = new PrivateCall(7);
+ Test.println(p.foo(123));
+ }
+ }
More information about the llvm-commits
mailing list