summaryrefslogtreecommitdiff
path: root/Examples
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2023-05-06 15:09:07 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2023-05-06 15:09:07 +0100
commit281af00437752e4340bfb6c8ca6bb97434bea5a4 (patch)
treeb932bcb61c731ed94aa746b3959df648a7da9955 /Examples
parente0c7f81ba58489f25764e7b52884c81758c4a41c (diff)
downloadswig-281af00437752e4340bfb6c8ca6bb97434bea5a4.tar.gz
Tweak to struct name in testcase for R
Diffstat (limited to 'Examples')
-rw-r--r--Examples/test-suite/cpp11_using_typedef_struct.i4
-rw-r--r--Examples/test-suite/javascript/cpp11_using_typedef_struct_runme.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/Examples/test-suite/cpp11_using_typedef_struct.i b/Examples/test-suite/cpp11_using_typedef_struct.i
index 81efdc310..4c7724f21 100644
--- a/Examples/test-suite/cpp11_using_typedef_struct.i
+++ b/Examples/test-suite/cpp11_using_typedef_struct.i
@@ -7,10 +7,10 @@ namespace nspace1 {
int x, y, z;
} AffineMatrix;
- struct _xCacheView {
+ struct xCacheView {
int x;
};
- typedef struct _xCacheView CacheView;
+ typedef struct xCacheView CacheView;
}
using nspace1::AffineMatrix;
diff --git a/Examples/test-suite/javascript/cpp11_using_typedef_struct_runme.js b/Examples/test-suite/javascript/cpp11_using_typedef_struct_runme.js
index 43a26ddcd..4acfdb883 100644
--- a/Examples/test-suite/javascript/cpp11_using_typedef_struct_runme.js
+++ b/Examples/test-suite/javascript/cpp11_using_typedef_struct_runme.js
@@ -6,7 +6,7 @@ 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();
+var bb = new cpp11_using_typedef_struct.xCacheView();
bb.x = 123;
if (cpp11_using_typedef_struct.fn2(bb) != 123)