blob: 4acfdb883cc9963bbbc6db4a0a5fcd04ad2f5393 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
var cpp11_using_typedef_struct = require("cpp11_using_typedef_struct");
var b = new cpp11_using_typedef_struct.AffineMatrix();
b.x = b.y = b.z = 1;
if (cpp11_using_typedef_struct.fn1(b) != b.x)
throw new Error('failed');
var bb = new cpp11_using_typedef_struct.xCacheView();
bb.x = 123;
if (cpp11_using_typedef_struct.fn2(bb) != 123)
throw new Error('failed');
|