This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

alignment test case


Here's a simple test case that shows the alignment bug.

When I run it, I get:

fleche. ./F
4294967296
true
null
232300
true
maude

This is with a pristine 3.3 build I did yesterday.

Tom


public class field
{
  long lval = 232300;
  boolean bval = true;
  String sval = "maude";

  public native void doitc ();

  public void doitj()
  {
    System.out.println(lval);
    System.out.println(bval);
    System.out.println(sval);
  }

  public static void main(String[] args)
  {
    field f = new field();
    f.doitc();
    f.doitj();
  }
}


#include <gcj/cni.h>

#include "field.h"
#include <java/lang/System.h>
#include <java/io/PrintStream.h>

void
field::doitc ()
{
  java::io::PrintStream *ps = java::lang::System::out;

  ps->println(lval);
  ps->println(bval);
  ps->println(sval);
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]