1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 1": 29*cdf0e10cSrcweirpublished enum Enum { VALUE }; 30*cdf0e10cSrcweirpublished struct Struct1 { long member; }; 31*cdf0e10cSrcweirpublished struct Struct2<T> { T member; }; 32*cdf0e10cSrcweirpublished exception E1 {}; 33*cdf0e10cSrcweirpublished interface I1 {}; 34*cdf0e10cSrcweirpublished typedef long Typedef; 35*cdf0e10cSrcweirpublished const long Constant = 1; 36*cdf0e10cSrcweirpublished constants Constants { const long Constant = 1; }; 37*cdf0e10cSrcweirpublished service Service1: I1 {}; 38*cdf0e10cSrcweirpublished service Service2 { interface I1; }; 39*cdf0e10cSrcweirpublished singleton Singleton1: I1; 40*cdf0e10cSrcweirpublished singleton Singleton2 { service Service2; }; 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir 43*cdf0e10cSrcweirEXPECT FAILURE "published.tests 2": 44*cdf0e10cSrcweirconstants Constants { published const long C = 1; }; 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir 47*cdf0e10cSrcweirEXPECT FAILURE "published.tests 3": 48*cdf0e10cSrcweirpublished constants Constants { published const long C = 1; }; 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir 51*cdf0e10cSrcweirEXPECT FAILURE "published.tests 4": 52*cdf0e10cSrcweirpublished module m {}; 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir 55*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 5": 56*cdf0e10cSrcweirinterface I1; 57*cdf0e10cSrcweirinterface I1 {}; 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir 60*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 6": 61*cdf0e10cSrcweirinterface I1; 62*cdf0e10cSrcweirpublished interface I1 {}; 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir 65*cdf0e10cSrcweirEXPECT FAILURE "published.tests 7": 66*cdf0e10cSrcweirpublished interface I1; 67*cdf0e10cSrcweirinterface I1 {}; 68*cdf0e10cSrcweir 69*cdf0e10cSrcweir 70*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 8": 71*cdf0e10cSrcweirpublished interface I1; 72*cdf0e10cSrcweirpublished interface I1 {}; 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir 75*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 9": 76*cdf0e10cSrcweirstruct S1 { long m1; }; 77*cdf0e10cSrcweirstruct S2: S1 { long m2; }; 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir 80*cdf0e10cSrcweirEXPECT FAILURE "published.tests 10": 81*cdf0e10cSrcweirstruct S1 { long m1; }; 82*cdf0e10cSrcweirpublished struct S2: S1 { long m2; }; 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir 85*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 11": 86*cdf0e10cSrcweirpublished struct S1 { long m1; }; 87*cdf0e10cSrcweirstruct S2: S1 { long m2; }; 88*cdf0e10cSrcweir 89*cdf0e10cSrcweir 90*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 12": 91*cdf0e10cSrcweirpublished struct S1 { long m1; }; 92*cdf0e10cSrcweirpublished struct S2: S1 { long m2; }; 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir 95*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 13": 96*cdf0e10cSrcweirenum E { V }; 97*cdf0e10cSrcweirstruct S1<T> { T m1; }; 98*cdf0e10cSrcweirstruct S2 { S1<E> m2; }; 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir 101*cdf0e10cSrcweirEXPECT FAILURE "published.tests 14": 102*cdf0e10cSrcweirenum E { V }; 103*cdf0e10cSrcweirstruct S1<T> { T m1; }; 104*cdf0e10cSrcweirpublished struct S2 { S1<E> m2; }; 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir 107*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 15": 108*cdf0e10cSrcweirenum E { V }; 109*cdf0e10cSrcweirpublished struct S1<T> { T m1; }; 110*cdf0e10cSrcweirstruct S2 { S1<E> m2; }; 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir 113*cdf0e10cSrcweirEXPECT FAILURE "published.tests 16": 114*cdf0e10cSrcweirenum E { V }; 115*cdf0e10cSrcweirpublished struct S1<T> { T m1; }; 116*cdf0e10cSrcweirpublished struct S2 { S1<E> m2; }; 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir 119*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 17": 120*cdf0e10cSrcweirpublished enum E { V }; 121*cdf0e10cSrcweirstruct S1<T> { T m1; }; 122*cdf0e10cSrcweirstruct S2 { S1<E> m2; }; 123*cdf0e10cSrcweir 124*cdf0e10cSrcweir 125*cdf0e10cSrcweirEXPECT FAILURE "published.tests 18": 126*cdf0e10cSrcweirpublished enum E { V }; 127*cdf0e10cSrcweirstruct S1<T> { T m1; }; 128*cdf0e10cSrcweirpublished struct S2 { S1<E> m2; }; 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir 131*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 19": 132*cdf0e10cSrcweirpublished enum E { V }; 133*cdf0e10cSrcweirpublished struct S1<T> { T m1; }; 134*cdf0e10cSrcweirstruct S2 { S1<E> m2; }; 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir 137*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 20": 138*cdf0e10cSrcweirpublished enum E { V }; 139*cdf0e10cSrcweirpublished struct S1<T> { T m1; }; 140*cdf0e10cSrcweirpublished struct S2 { S1<E> m2; }; 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir 143*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 21": 144*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 145*cdf0e10cSrcweirexception Exception {}; 146*cdf0e10cSrcweirexception E2: Exception {}; 147*cdf0e10cSrcweir}; }; }; }; 148*cdf0e10cSrcweir 149*cdf0e10cSrcweir 150*cdf0e10cSrcweirEXPECT FAILURE "published.tests 22": 151*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 152*cdf0e10cSrcweirexception Exception {}; 153*cdf0e10cSrcweirpublished exception E2: Exception {}; 154*cdf0e10cSrcweir}; }; }; }; 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir 157*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 23": 158*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 159*cdf0e10cSrcweirpublished exception Exception {}; 160*cdf0e10cSrcweirexception E2: Exception {}; 161*cdf0e10cSrcweir}; }; }; }; 162*cdf0e10cSrcweir 163*cdf0e10cSrcweir 164*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 24": 165*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 166*cdf0e10cSrcweirpublished exception Exception {}; 167*cdf0e10cSrcweirpublished exception E2: Exception {}; 168*cdf0e10cSrcweir}; }; }; }; 169*cdf0e10cSrcweir 170*cdf0e10cSrcweir 171*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 25": 172*cdf0e10cSrcweirenum E { V }; 173*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 174*cdf0e10cSrcweirexception Exception { E m; }; 175*cdf0e10cSrcweir}; }; }; }; 176*cdf0e10cSrcweir 177*cdf0e10cSrcweir 178*cdf0e10cSrcweirEXPECT FAILURE "published.tests 26": 179*cdf0e10cSrcweirenum E { V }; 180*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 181*cdf0e10cSrcweirpublished exception Exception { E m; }; 182*cdf0e10cSrcweir}; }; }; }; 183*cdf0e10cSrcweir 184*cdf0e10cSrcweir 185*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 27": 186*cdf0e10cSrcweirpublished enum E { V }; 187*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 188*cdf0e10cSrcweirexception Exception { E m; }; 189*cdf0e10cSrcweir}; }; }; }; 190*cdf0e10cSrcweir 191*cdf0e10cSrcweir 192*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 28": 193*cdf0e10cSrcweirpublished enum E { V }; 194*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 195*cdf0e10cSrcweirpublished exception Exception { E m; }; 196*cdf0e10cSrcweir}; }; }; }; 197*cdf0e10cSrcweir 198*cdf0e10cSrcweir 199*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 29": 200*cdf0e10cSrcweirinterface I1 {}; 201*cdf0e10cSrcweirinterface I2: I1 {}; 202*cdf0e10cSrcweir 203*cdf0e10cSrcweir 204*cdf0e10cSrcweirEXPECT FAILURE "published.tests 30": 205*cdf0e10cSrcweirinterface I1 {}; 206*cdf0e10cSrcweirpublished interface I2: I1 {}; 207*cdf0e10cSrcweir 208*cdf0e10cSrcweir 209*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 31": 210*cdf0e10cSrcweirpublished interface I1 {}; 211*cdf0e10cSrcweirinterface I2: I1 {}; 212*cdf0e10cSrcweir 213*cdf0e10cSrcweir 214*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 32": 215*cdf0e10cSrcweirpublished interface I1 {}; 216*cdf0e10cSrcweirpublished interface I2: I1 {}; 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir 219*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 33": 220*cdf0e10cSrcweirenum E { V }; 221*cdf0e10cSrcweirinterface I1 { [attribute] E m; }; 222*cdf0e10cSrcweir 223*cdf0e10cSrcweir 224*cdf0e10cSrcweirEXPECT FAILURE "published.tests 34": 225*cdf0e10cSrcweirenum E { V }; 226*cdf0e10cSrcweirpublished interface I1 { [attribute] E m; }; 227*cdf0e10cSrcweir 228*cdf0e10cSrcweir 229*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 35": 230*cdf0e10cSrcweirpublished enum E { V }; 231*cdf0e10cSrcweirinterface I1 { [attribute] E m; }; 232*cdf0e10cSrcweir 233*cdf0e10cSrcweir 234*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 36": 235*cdf0e10cSrcweirpublished enum E { V }; 236*cdf0e10cSrcweirpublished interface I1 { [attribute] E m; }; 237*cdf0e10cSrcweir 238*cdf0e10cSrcweir 239*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 36a.1": 240*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 241*cdf0e10cSrcweirexception Exception {}; 242*cdf0e10cSrcweirinterface I1 { [attribute] long m { get raises (Exception); }; }; 243*cdf0e10cSrcweir}; }; }; }; 244*cdf0e10cSrcweir 245*cdf0e10cSrcweir 246*cdf0e10cSrcweirEXPECT FAILURE "published.tests 36a.2": 247*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 248*cdf0e10cSrcweirexception Exception {}; 249*cdf0e10cSrcweirpublished interface I1 { 250*cdf0e10cSrcweir [attribute] long m { get raises (Exception); }; }; 251*cdf0e10cSrcweir}; }; }; }; 252*cdf0e10cSrcweir 253*cdf0e10cSrcweir 254*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 36a.3": 255*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 256*cdf0e10cSrcweirpublished exception Exception {}; 257*cdf0e10cSrcweirinterface I1 { [attribute] long m { get raises (Exception); }; }; 258*cdf0e10cSrcweir}; }; }; }; 259*cdf0e10cSrcweir 260*cdf0e10cSrcweir 261*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 36a.4": 262*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 263*cdf0e10cSrcweirpublished exception Exception {}; 264*cdf0e10cSrcweirpublished interface I1 { 265*cdf0e10cSrcweir [attribute] long m { get raises (Exception); }; }; 266*cdf0e10cSrcweir}; }; }; }; 267*cdf0e10cSrcweir 268*cdf0e10cSrcweir 269*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 37": 270*cdf0e10cSrcweirenum E { V }; 271*cdf0e10cSrcweirinterface I1 { E f(); }; 272*cdf0e10cSrcweir 273*cdf0e10cSrcweir 274*cdf0e10cSrcweirEXPECT FAILURE "published.tests 38": 275*cdf0e10cSrcweirenum E { V }; 276*cdf0e10cSrcweirpublished interface I1 { E f(); }; 277*cdf0e10cSrcweir 278*cdf0e10cSrcweir 279*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 39": 280*cdf0e10cSrcweirpublished enum E { V }; 281*cdf0e10cSrcweirinterface I1 { E f(); }; 282*cdf0e10cSrcweir 283*cdf0e10cSrcweir 284*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 40": 285*cdf0e10cSrcweirpublished enum E { V }; 286*cdf0e10cSrcweirpublished interface I1 { E f(); }; 287*cdf0e10cSrcweir 288*cdf0e10cSrcweir 289*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 41": 290*cdf0e10cSrcweirenum E { V }; 291*cdf0e10cSrcweirinterface I1 { void f([in] E p); }; 292*cdf0e10cSrcweir 293*cdf0e10cSrcweir 294*cdf0e10cSrcweirEXPECT FAILURE "published.tests 42": 295*cdf0e10cSrcweirenum E { V }; 296*cdf0e10cSrcweirpublished interface I1 { void f([in] E p); }; 297*cdf0e10cSrcweir 298*cdf0e10cSrcweir 299*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 43": 300*cdf0e10cSrcweirpublished enum E { V }; 301*cdf0e10cSrcweirinterface I1 { void f([in] E p); }; 302*cdf0e10cSrcweir 303*cdf0e10cSrcweir 304*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 44": 305*cdf0e10cSrcweirpublished enum E { V }; 306*cdf0e10cSrcweirpublished interface I1 { void f([in] E p); }; 307*cdf0e10cSrcweir 308*cdf0e10cSrcweir 309*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 45": 310*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 311*cdf0e10cSrcweirexception Exception {}; 312*cdf0e10cSrcweirinterface I1 { void f() raises (Exception); }; 313*cdf0e10cSrcweir}; }; }; }; 314*cdf0e10cSrcweir 315*cdf0e10cSrcweir 316*cdf0e10cSrcweirEXPECT FAILURE "published.tests 46": 317*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 318*cdf0e10cSrcweirexception Exception {}; 319*cdf0e10cSrcweirpublished interface I1 { void f() raises (Exception); }; 320*cdf0e10cSrcweir}; }; }; }; 321*cdf0e10cSrcweir 322*cdf0e10cSrcweir 323*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 47": 324*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 325*cdf0e10cSrcweirpublished exception Exception {}; 326*cdf0e10cSrcweirinterface I1 { void f() raises (Exception); }; 327*cdf0e10cSrcweir}; }; }; }; 328*cdf0e10cSrcweir 329*cdf0e10cSrcweir 330*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 48": 331*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 332*cdf0e10cSrcweirpublished exception Exception {}; 333*cdf0e10cSrcweirpublished interface I1 { void f() raises (Exception); }; 334*cdf0e10cSrcweir}; }; }; }; 335*cdf0e10cSrcweir 336*cdf0e10cSrcweir 337*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 49": 338*cdf0e10cSrcweirinterface I1 {}; 339*cdf0e10cSrcweirinterface I2 { interface I1; }; 340*cdf0e10cSrcweir 341*cdf0e10cSrcweir 342*cdf0e10cSrcweirEXPECT FAILURE "published.tests 50": 343*cdf0e10cSrcweirinterface I1 {}; 344*cdf0e10cSrcweirpublished interface I2 { interface I1; }; 345*cdf0e10cSrcweir 346*cdf0e10cSrcweir 347*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 51": 348*cdf0e10cSrcweirpublished interface I1 {}; 349*cdf0e10cSrcweirinterface I2 { interface I1; }; 350*cdf0e10cSrcweir 351*cdf0e10cSrcweir 352*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 52": 353*cdf0e10cSrcweirpublished interface I1 {}; 354*cdf0e10cSrcweirpublished interface I2 { interface I1; }; 355*cdf0e10cSrcweir 356*cdf0e10cSrcweir 357*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 57": 358*cdf0e10cSrcweirenum E { V }; 359*cdf0e10cSrcweirtypedef E T; 360*cdf0e10cSrcweir 361*cdf0e10cSrcweir 362*cdf0e10cSrcweirEXPECT FAILURE "published.tests 58": 363*cdf0e10cSrcweirenum E { V }; 364*cdf0e10cSrcweirpublished typedef E T; 365*cdf0e10cSrcweir 366*cdf0e10cSrcweir 367*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 59": 368*cdf0e10cSrcweirpublished enum E { V }; 369*cdf0e10cSrcweirtypedef E T; 370*cdf0e10cSrcweir 371*cdf0e10cSrcweir 372*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 60": 373*cdf0e10cSrcweirpublished enum E { V }; 374*cdf0e10cSrcweirpublished typedef E T; 375*cdf0e10cSrcweir 376*cdf0e10cSrcweir 377*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 61": 378*cdf0e10cSrcweirenum E { V }; 379*cdf0e10cSrcweirtypedef E T; 380*cdf0e10cSrcweirstruct S { T m; }; 381*cdf0e10cSrcweir 382*cdf0e10cSrcweir 383*cdf0e10cSrcweirEXPECT FAILURE "published.tests 62": 384*cdf0e10cSrcweirenum E { V }; 385*cdf0e10cSrcweirtypedef E T; 386*cdf0e10cSrcweirpublished struct S { T m; }; 387*cdf0e10cSrcweir 388*cdf0e10cSrcweir 389*cdf0e10cSrcweirEXPECT FAILURE "published.tests 63": 390*cdf0e10cSrcweirenum E { V }; 391*cdf0e10cSrcweirpublished typedef E T; 392*cdf0e10cSrcweirstruct S { T m; }; 393*cdf0e10cSrcweir 394*cdf0e10cSrcweir 395*cdf0e10cSrcweirEXPECT FAILURE "published.tests 64": 396*cdf0e10cSrcweirenum E { V }; 397*cdf0e10cSrcweirpublished typedef E T; 398*cdf0e10cSrcweirpublished struct S { T m; }; 399*cdf0e10cSrcweir 400*cdf0e10cSrcweir 401*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 65": 402*cdf0e10cSrcweirpublished enum E { V }; 403*cdf0e10cSrcweirtypedef E T; 404*cdf0e10cSrcweirstruct S { T m; }; 405*cdf0e10cSrcweir 406*cdf0e10cSrcweir 407*cdf0e10cSrcweirEXPECT FAILURE "published.tests 66": 408*cdf0e10cSrcweirpublished enum E { V }; 409*cdf0e10cSrcweirtypedef E T; 410*cdf0e10cSrcweirpublished struct S { T m; }; 411*cdf0e10cSrcweir 412*cdf0e10cSrcweir 413*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 67": 414*cdf0e10cSrcweirpublished enum E { V }; 415*cdf0e10cSrcweirpublished typedef E T; 416*cdf0e10cSrcweirstruct S { T m; }; 417*cdf0e10cSrcweir 418*cdf0e10cSrcweir 419*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 68": 420*cdf0e10cSrcweirpublished enum E { V }; 421*cdf0e10cSrcweirpublished typedef E T; 422*cdf0e10cSrcweirpublished struct S { T m; }; 423*cdf0e10cSrcweir 424*cdf0e10cSrcweir 425*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 69": 426*cdf0e10cSrcweirconst long C1 = 1; 427*cdf0e10cSrcweirconst long C2 = C1 + 1; 428*cdf0e10cSrcweir 429*cdf0e10cSrcweir 430*cdf0e10cSrcweirEXPECT FAILURE "published.tests 70": 431*cdf0e10cSrcweirconst long C1 = 1; 432*cdf0e10cSrcweirpublished const long C2 = C1 + 1; 433*cdf0e10cSrcweir 434*cdf0e10cSrcweir 435*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 71": 436*cdf0e10cSrcweirpublished const long C1 = 1; 437*cdf0e10cSrcweirconst long C2 = C1 + 1; 438*cdf0e10cSrcweir 439*cdf0e10cSrcweir 440*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 72": 441*cdf0e10cSrcweirpublished const long C1 = 1; 442*cdf0e10cSrcweirpublished const long C2 = C1 + 1; 443*cdf0e10cSrcweir 444*cdf0e10cSrcweir 445*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 73": 446*cdf0e10cSrcweirconstants Cs { 447*cdf0e10cSrcweir const long C1 = 1; 448*cdf0e10cSrcweir const long C2 = C1 + 1; 449*cdf0e10cSrcweir}; 450*cdf0e10cSrcweir 451*cdf0e10cSrcweir 452*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 74": 453*cdf0e10cSrcweirpublished constants Cs { 454*cdf0e10cSrcweir const long C1 = 1; 455*cdf0e10cSrcweir const long C2 = C1 + 1; 456*cdf0e10cSrcweir}; 457*cdf0e10cSrcweir 458*cdf0e10cSrcweir 459*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 75": 460*cdf0e10cSrcweirconstants Cs { const long C1 = 1; }; 461*cdf0e10cSrcweirconst long C2 = Cs::C1 + 1; 462*cdf0e10cSrcweir 463*cdf0e10cSrcweir 464*cdf0e10cSrcweirEXPECT FAILURE "published.tests 76": 465*cdf0e10cSrcweirconstants Cs { const long C1 = 1; }; 466*cdf0e10cSrcweirpublished const long C2 = Cs::C1 + 1; 467*cdf0e10cSrcweir 468*cdf0e10cSrcweir 469*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 77": 470*cdf0e10cSrcweirpublished constants Cs { const long C1 = 1; }; 471*cdf0e10cSrcweirconst long C2 = Cs::C1 + 1; 472*cdf0e10cSrcweir 473*cdf0e10cSrcweir 474*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 78": 475*cdf0e10cSrcweirpublished constants Cs { const long C1 = 1; }; 476*cdf0e10cSrcweirpublished const long C2 = Cs::C1 + 1; 477*cdf0e10cSrcweir 478*cdf0e10cSrcweir 479*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 79": 480*cdf0e10cSrcweirconst long C1 = 1; 481*cdf0e10cSrcweirconstants Cs { const long C2 = C1 + 1; }; 482*cdf0e10cSrcweir 483*cdf0e10cSrcweir 484*cdf0e10cSrcweirEXPECT FAILURE "published.tests 80": 485*cdf0e10cSrcweirconst long C1 = 1; 486*cdf0e10cSrcweirpublished constants Cs { const long C2 = C1 + 1; }; 487*cdf0e10cSrcweir 488*cdf0e10cSrcweir 489*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 81": 490*cdf0e10cSrcweirpublished const long C1 = 1; 491*cdf0e10cSrcweirconstants Cs { const long C2 = C1 + 1; }; 492*cdf0e10cSrcweir 493*cdf0e10cSrcweir 494*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 82": 495*cdf0e10cSrcweirpublished const long C1 = 1; 496*cdf0e10cSrcweirpublished constants Cs { const long C2 = C1 + 1; }; 497*cdf0e10cSrcweir 498*cdf0e10cSrcweir 499*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 83": 500*cdf0e10cSrcweirconstants Cs1 { const long C1 = 1; }; 501*cdf0e10cSrcweirconstants Cs2 { const long C2 = Cs1::C1 + 1; }; 502*cdf0e10cSrcweir 503*cdf0e10cSrcweir 504*cdf0e10cSrcweirEXPECT FAILURE "published.tests 84": 505*cdf0e10cSrcweirconstants Cs1 { const long C1 = 1; }; 506*cdf0e10cSrcweirpublished constants Cs2 { const long C2 = Cs1::C1 + 1; }; 507*cdf0e10cSrcweir 508*cdf0e10cSrcweir 509*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 85": 510*cdf0e10cSrcweirpublished constants Cs1 { const long C1 = 1; }; 511*cdf0e10cSrcweirconstants Cs2 { const long C2 = Cs1::C1 + 1; }; 512*cdf0e10cSrcweir 513*cdf0e10cSrcweir 514*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 86": 515*cdf0e10cSrcweirpublished constants Cs1 { const long C1 = 1; }; 516*cdf0e10cSrcweirpublished constants Cs2 { const long C2 = Cs1::C1 + 1; }; 517*cdf0e10cSrcweir 518*cdf0e10cSrcweir 519*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 87": 520*cdf0e10cSrcweirtypedef long T; 521*cdf0e10cSrcweirconst T C = 1; 522*cdf0e10cSrcweir 523*cdf0e10cSrcweir 524*cdf0e10cSrcweirEXPECT FAILURE "published.tests 88": 525*cdf0e10cSrcweirtypedef long T; 526*cdf0e10cSrcweirpublished const T C = 1; 527*cdf0e10cSrcweir 528*cdf0e10cSrcweir 529*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 89": 530*cdf0e10cSrcweirpublished typedef long T; 531*cdf0e10cSrcweirconst T C = 1; 532*cdf0e10cSrcweir 533*cdf0e10cSrcweir 534*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 90": 535*cdf0e10cSrcweirpublished typedef long T; 536*cdf0e10cSrcweirpublished const T C = 1; 537*cdf0e10cSrcweir 538*cdf0e10cSrcweir 539*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 91": 540*cdf0e10cSrcweirservice S1 {}; 541*cdf0e10cSrcweirservice S2 { service S1; }; 542*cdf0e10cSrcweir 543*cdf0e10cSrcweir 544*cdf0e10cSrcweirEXPECT FAILURE "published.tests 92": 545*cdf0e10cSrcweirservice S1 {}; 546*cdf0e10cSrcweirpublished service S2 { service S1; }; 547*cdf0e10cSrcweir 548*cdf0e10cSrcweir 549*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 93": 550*cdf0e10cSrcweirpublished service S1 {}; 551*cdf0e10cSrcweirservice S2 { service S1; }; 552*cdf0e10cSrcweir 553*cdf0e10cSrcweir 554*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 94": 555*cdf0e10cSrcweirpublished service S1 {}; 556*cdf0e10cSrcweirpublished service S2 { service S1; }; 557*cdf0e10cSrcweir 558*cdf0e10cSrcweir 559*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 95": 560*cdf0e10cSrcweirinterface I1 {}; 561*cdf0e10cSrcweirservice S { interface I1; }; 562*cdf0e10cSrcweir 563*cdf0e10cSrcweir 564*cdf0e10cSrcweirEXPECT FAILURE "published.tests 96": 565*cdf0e10cSrcweirinterface I1 {}; 566*cdf0e10cSrcweirpublished service S { interface I1; }; 567*cdf0e10cSrcweir 568*cdf0e10cSrcweir 569*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 97": 570*cdf0e10cSrcweirpublished interface I1 {}; 571*cdf0e10cSrcweirservice S { interface I1; }; 572*cdf0e10cSrcweir 573*cdf0e10cSrcweir 574*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 98": 575*cdf0e10cSrcweirpublished interface I1 {}; 576*cdf0e10cSrcweirpublished service S { interface I1; }; 577*cdf0e10cSrcweir 578*cdf0e10cSrcweir 579*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 99": 580*cdf0e10cSrcweirinterface I1 {}; 581*cdf0e10cSrcweirservice S: I1; 582*cdf0e10cSrcweir 583*cdf0e10cSrcweir 584*cdf0e10cSrcweirEXPECT FAILURE "published.tests 100": 585*cdf0e10cSrcweirinterface I1 {}; 586*cdf0e10cSrcweirpublished service S: I1; 587*cdf0e10cSrcweir 588*cdf0e10cSrcweir 589*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 101": 590*cdf0e10cSrcweirpublished interface I1 {}; 591*cdf0e10cSrcweirservice S: I1; 592*cdf0e10cSrcweir 593*cdf0e10cSrcweir 594*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 102": 595*cdf0e10cSrcweirpublished interface I1 {}; 596*cdf0e10cSrcweirpublished service S: I1; 597*cdf0e10cSrcweir 598*cdf0e10cSrcweir 599*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 103": 600*cdf0e10cSrcweirenum E { V }; 601*cdf0e10cSrcweirinterface I1 {}; 602*cdf0e10cSrcweirservice S: I1 { 603*cdf0e10cSrcweir f([in] E p); 604*cdf0e10cSrcweir}; 605*cdf0e10cSrcweir 606*cdf0e10cSrcweir 607*cdf0e10cSrcweirEXPECT FAILURE "published.tests 104": 608*cdf0e10cSrcweirenum E { V }; 609*cdf0e10cSrcweirpublished interface I1 {}; 610*cdf0e10cSrcweirpublished service S: I1 { 611*cdf0e10cSrcweir f([in] E p); 612*cdf0e10cSrcweir}; 613*cdf0e10cSrcweir 614*cdf0e10cSrcweir 615*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 105": 616*cdf0e10cSrcweirpublished enum E { V }; 617*cdf0e10cSrcweirinterface I1 {}; 618*cdf0e10cSrcweirservice S: I1 { 619*cdf0e10cSrcweir f([in] E p); 620*cdf0e10cSrcweir}; 621*cdf0e10cSrcweir 622*cdf0e10cSrcweir 623*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 106": 624*cdf0e10cSrcweirpublished enum E { V }; 625*cdf0e10cSrcweirpublished interface I1 {}; 626*cdf0e10cSrcweirpublished service S: I1 { 627*cdf0e10cSrcweir f([in] E p); 628*cdf0e10cSrcweir}; 629*cdf0e10cSrcweir 630*cdf0e10cSrcweir 631*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 107": 632*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 633*cdf0e10cSrcweirexception Exception {}; 634*cdf0e10cSrcweirinterface I1 {}; 635*cdf0e10cSrcweirservice S: I1 { 636*cdf0e10cSrcweir f() raises (Exception); 637*cdf0e10cSrcweir}; 638*cdf0e10cSrcweir}; }; }; }; 639*cdf0e10cSrcweir 640*cdf0e10cSrcweir 641*cdf0e10cSrcweirEXPECT FAILURE "published.tests 108": 642*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 643*cdf0e10cSrcweirexception Exception {}; 644*cdf0e10cSrcweirpublished interface I1 {}; 645*cdf0e10cSrcweirpublished service S: I1 { 646*cdf0e10cSrcweir f() raises (Exception); 647*cdf0e10cSrcweir}; 648*cdf0e10cSrcweir}; }; }; }; 649*cdf0e10cSrcweir 650*cdf0e10cSrcweir 651*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 109": 652*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 653*cdf0e10cSrcweirpublished exception Exception {}; 654*cdf0e10cSrcweirinterface I1 {}; 655*cdf0e10cSrcweirservice S: I1 { 656*cdf0e10cSrcweir f() raises (Exception); 657*cdf0e10cSrcweir}; 658*cdf0e10cSrcweir}; }; }; }; 659*cdf0e10cSrcweir 660*cdf0e10cSrcweir 661*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 110": 662*cdf0e10cSrcweirmodule com { module sun { module star { module uno { 663*cdf0e10cSrcweirpublished exception Exception {}; 664*cdf0e10cSrcweirpublished interface I1 {}; 665*cdf0e10cSrcweirpublished service S: I1 { 666*cdf0e10cSrcweir f() raises (Exception); 667*cdf0e10cSrcweir}; 668*cdf0e10cSrcweir}; }; }; }; 669*cdf0e10cSrcweir 670*cdf0e10cSrcweir 671*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 111": 672*cdf0e10cSrcweirservice S1 {}; 673*cdf0e10cSrcweirsingleton S2 { service S1; }; 674*cdf0e10cSrcweir 675*cdf0e10cSrcweir 676*cdf0e10cSrcweirEXPECT FAILURE "published.tests 112": 677*cdf0e10cSrcweirservice S1 {}; 678*cdf0e10cSrcweirpublished singleton S2 { service S1; }; 679*cdf0e10cSrcweir 680*cdf0e10cSrcweir 681*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 113": 682*cdf0e10cSrcweirpublished service S1 {}; 683*cdf0e10cSrcweirsingleton S2 { service S1; }; 684*cdf0e10cSrcweir 685*cdf0e10cSrcweir 686*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 114": 687*cdf0e10cSrcweirpublished service S1 {}; 688*cdf0e10cSrcweirpublished singleton S2 { service S1; }; 689*cdf0e10cSrcweir 690*cdf0e10cSrcweir 691*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 115": 692*cdf0e10cSrcweirinterface I1 {}; 693*cdf0e10cSrcweirsingleton S: I1; 694*cdf0e10cSrcweir 695*cdf0e10cSrcweir 696*cdf0e10cSrcweirEXPECT FAILURE "published.tests 116": 697*cdf0e10cSrcweirinterface I1 {}; 698*cdf0e10cSrcweirpublished singleton S: I1; 699*cdf0e10cSrcweir 700*cdf0e10cSrcweir 701*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 117": 702*cdf0e10cSrcweirpublished interface I1 {}; 703*cdf0e10cSrcweirsingleton S: I1; 704*cdf0e10cSrcweir 705*cdf0e10cSrcweir 706*cdf0e10cSrcweirEXPECT SUCCESS "published.tests 118": 707*cdf0e10cSrcweirpublished interface I1 {}; 708*cdf0e10cSrcweirpublished singleton S: I1; 709