Compile1.hx 263 B

12345678910111213
  1. @:semantics(value)
  2. @:cpp.ValueType
  3. extern class Struct {
  4. function new();
  5. var a:Int;
  6. }
  7. @:headerCode("struct Struct { int a; Struct() {} };")
  8. class Compile1 {
  9. static function main() {
  10. final struct : cpp.Star<Struct> = cast new Struct();
  11. }
  12. }