err14.java: New file.
authorAndrew Haley <aph@gcc.gnu.org>
Tue, 10 Aug 2004 14:21:05 +0000 (14:21 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Tue, 10 Aug 2004 14:21:05 +0000 (14:21 +0000)
2004-08-10  Andrew Haley  <aph@redhat.com>

* testsuite/libjava.lang/err14.java: New file.
* testsuite/libjava.lang/err14.out: New file.

From-SVN: r85752

libjava/testsuite/libjava.lang/err14.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/err14.out [new file with mode: 0644]

diff --git a/libjava/testsuite/libjava.lang/err14.java b/libjava/testsuite/libjava.lang/err14.java
new file mode 100644 (file)
index 0000000..a8ee40c
--- /dev/null
@@ -0,0 +1,20 @@
+/* Check for incorrectly aligned byte args.  */
+
+public class err14
+{
+  protected final String getClearToolCommand(Object a, Object b,
+                                             Object c, Object d, 
+                                             int e, int f, boolean x) 
+  {
+    return x ? "hi" : "byte";
+  }
+  
+  
+  public static void main(String[] args)
+  {
+    System.out.println(new err14().getClearToolCommand(null, null,
+                                                       null, null, 0, 0, false));
+    System.out.println(new err14().getClearToolCommand(null, null,
+                                                       null, null, 0, 0, true));
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/err14.out b/libjava/testsuite/libjava.lang/err14.out
new file mode 100644 (file)
index 0000000..c361ac2
--- /dev/null
@@ -0,0 +1,2 @@
+byte
+hi