diff options
author | Alistair Delva <adelva@google.com> | 2024-04-10 14:15:29 -0700 |
---|---|---|
committer | Alistair Delva <adelva@google.com> | 2024-04-11 12:58:28 -0700 |
commit | d0f0f90be16c2ac553b5fa08512045273135147a (patch) | |
tree | 5d9ebb7a04807ea8a609ddd18b0162bc87530e4b /Examples/test-suite/javascript/struct_initialization_runme.js | |
parent | 6ffc1dbf29ba98c4d8aa71ebc9b484e973fe1030 (diff) | |
download | swig-d0f0f90be16c2ac553b5fa08512045273135147a.tar.gz |
Update to v4.2.1HEADmastermainllvm-r522817
Change-Id: I47cef2be94299220d80265d949a95b58eee2c23b
Diffstat (limited to 'Examples/test-suite/javascript/struct_initialization_runme.js')
-rw-r--r-- | Examples/test-suite/javascript/struct_initialization_runme.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Examples/test-suite/javascript/struct_initialization_runme.js b/Examples/test-suite/javascript/struct_initialization_runme.js new file mode 100644 index 000000000..9ae8e7913 --- /dev/null +++ b/Examples/test-suite/javascript/struct_initialization_runme.js @@ -0,0 +1,25 @@ +var struct_initialization = require("struct_initialization"); + +if (struct_initialization.instanceC1.x != 10) { + throw new Error; +} + +if (struct_initialization.instanceD1.x != 10) { + throw new Error; +} + +if (struct_initialization.instanceD2.x != 20) { + throw new Error; +} + +if (struct_initialization.instanceD3.x != 30) { + throw new Error; +} + +if (struct_initialization.instanceE1.x != 1) { + throw new Error; +} + +if (struct_initialization.instanceF1.x != 1) { + throw new Error; +} |