summaryrefslogtreecommitdiff
path: root/bindgen-integration/cpp/Test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-integration/cpp/Test.cc')
-rw-r--r--bindgen-integration/cpp/Test.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/bindgen-integration/cpp/Test.cc b/bindgen-integration/cpp/Test.cc
index 240109bb..71a0a4b9 100644
--- a/bindgen-integration/cpp/Test.cc
+++ b/bindgen-integration/cpp/Test.cc
@@ -135,3 +135,12 @@ Seventh::assert(bool first,
int my_prefixed_function_name() {
return 4;
}
+
+Coord coord(double x, double y, double z, double t) {
+ Coord res;
+ res.v[0] = x;
+ res.v[1] = y;
+ res.v[2] = z;
+ res.v[3] = t;
+ return res;
+}