summaryrefslogtreecommitdiff
path: root/test cases/rust/12 bindgen/src/impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/rust/12 bindgen/src/impl.cpp')
-rw-r--r--test cases/rust/12 bindgen/src/impl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test cases/rust/12 bindgen/src/impl.cpp b/test cases/rust/12 bindgen/src/impl.cpp
new file mode 100644
index 000000000..39c8f2ebe
--- /dev/null
+++ b/test cases/rust/12 bindgen/src/impl.cpp
@@ -0,0 +1,7 @@
+#include "header.hpp"
+
+MyClass::MyClass() : val{7} {};
+
+int MyClass::method() const {
+ return val;
+}