OSDN Git Service

2004-08-10 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Aug 2004 14:21:05 +0000 (14:21 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Aug 2004 14:21:05 +0000 (14:21 +0000)
* testsuite/libjava.lang/err14.java: New file.
* testsuite/libjava.lang/err14.out: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85752 138bc75d-0d04-0410-961f-82ee72b054a4

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