From 281af00437752e4340bfb6c8ca6bb97434bea5a4 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 6 May 2023 15:09:07 +0100 Subject: Tweak to struct name in testcase for R --- Examples/test-suite/cpp11_using_typedef_struct.i | 4 ++-- Examples/test-suite/javascript/cpp11_using_typedef_struct_runme.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Examples') 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) -- cgit v1.2.1