Add runtime test for %extend and nested union
This commit is contained in:
parent
84e1b553c4
commit
5f3ee109c8
1 changed files with 7 additions and 0 deletions
|
|
@ -34,5 +34,12 @@ public class nested_extend_c_runme {
|
||||||
if (low.low_extend() != 99)
|
if (low.low_extend() != 99)
|
||||||
throw new RuntimeException("test failed");
|
throw new RuntimeException("test failed");
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
FOO_bar foobar = new FOO_bar();
|
||||||
|
foobar.setD(1234);
|
||||||
|
if (foobar.getD() != 1234)
|
||||||
|
throw new RuntimeException("test failed");
|
||||||
|
foobar.bar_extend();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue