/************************************************************************* * * $RCSfile: alignment.idl,v $ * * $Revision: 1.2 $ * * last change: $Author: dbo $ $Date: 2001-10-19 13:25:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses * * - GNU Lesser General Public License Version 2.1 * - Sun Industry Standards Source License Version 1.1 * * Sun Microsystems Inc., October, 2000 * * GNU Lesser General Public License Version 2.1 * ============================================= * Copyright 2000 by Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, CA 94303, USA * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * * * Sun Industry Standards Source License Version 1.1 * ================================================= * The contents of this file are subject to the Sun Industry Standards * Source License Version 1.1 (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.openoffice.org/license.html. * * Software provided under this License is provided on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. * See the License for the specific provisions governing your rights and * obligations concerning the Software. * * The Initial Developer of the Original Code is: Sun Microsystems, Inc. * * Copyright: 2000 by Sun Microsystems, Inc. * * All Rights Reserved. * * Contributor(s): _______________________________________ * * ************************************************************************/ #ifndef _TEST_ALIGNMENT_IDL_ #define _TEST_ALIGNMENT_IDL_ #include module test { module alignment { struct C1 { short n1; }; struct C2 : C1 { long n2; }; struct C3 : C2 { double d3; long n3; }; struct C4 : C3 { long n4; double d4; }; struct C5 : C4 { hyper n5; boolean b5; }; struct C6 : C1 { C5 c; boolean b6; }; struct C7 : C1 { C1 c; boolean b6; }; struct C8 : C1 { any a; boolean b6; }; struct C9 : C1 { string s; boolean b6; }; struct C10 : C1 { float f; boolean b6; }; struct C11 : C1 { double d; boolean b6; }; struct C12 : C1 { hyper n; boolean b6; }; struct C13 : C1 { unsigned hyper n; boolean b6; }; struct C14 : C1 { ::com::sun::star::uno::XInterface x; boolean b6; }; struct C1x { short sx; double dx; }; struct C6x : C1x { C5 c; boolean b6; }; struct C7x : C1x { C1 c; boolean b6; }; struct C8x : C1x { any a; boolean b6; }; struct C9x : C1x { string s; boolean b6; }; struct C10x : C1x { float f; boolean b6; }; struct C11x : C1x { double d; boolean b6; }; struct C12x : C1x { hyper n; boolean b6; }; struct C13x : C1x { unsigned hyper n; boolean b6; }; struct C14x : C1x { ::com::sun::star::uno::XInterface x; boolean b6; }; struct D { short d; long e; }; struct E { boolean a; boolean b; boolean c; short d; long e; }; struct M { long n; short o; }; struct N : M { short p; }; struct N2 { M m; short p; }; struct O : M { double p; }; struct O2 : O { double p2; }; struct P : N { double p2; }; }; // alignment }; // test #endif