/* * Two identical identifiers on the same scope */ struct A { long x; }; exception A { };
idl 源代码
IDL是一种数据分析和图像化应用程序及编程语言,先由美国ITT公司所有,后由美国ExelisVis公司所有。最初在七十年代后期用于帮助科学家分析火星探险卫星发回的数据,将浩瀚的数据转换为图形。从此后,IDL得到广泛运用,使用者日众,呈几何级别增长。IDL使用者可以迅速且方便地运用…
/* * Union with mismatching discriminator types. */ union U switch(char) { case TRUE: long x; };
/* * Illegal form of recursion. */ struct S { union U switch(long) { case 1: S s; } u; };
/* * Oneway operation may not contain output parameters or raises expressions. */ interface A { oneway void foo( out long x )…
/* * Reference to z in x::x should not be resolved to y::z */ module y { typedef short z; interface yi { }; }; module x …
/* * Duplicate member in struct. */ struct S { long a; char a; };
/* * Duplicate member in union. */ union U switch(long) { case 1: long a; case 2: char a; };
/* * Parse error */ struct S { long x; char !!!a; };
/* * Can not inherit from an incomplete interface definition. */ interface A; interface B : A {}; interface A { };
/* * Bad #pragma directive // not an error any more */ #pragma foobar "omg.org" typedef string Identifier;