summaryrefslogtreecommitdiff
path: root/src/tests/eolian_cxx/c.eo
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2014-12-23 17:40:11 -0200
committerVitor Sousa <vitorsousasilva@gmail.com>2015-01-05 15:52:27 -0200
commit0685885c2a488c41f118118de8506f8d286e3eea (patch)
tree8bfdf66654d27e7481ab73b81b53ec857fb4ef95 /src/tests/eolian_cxx/c.eo
parent6519ae6ed98789857722cd1d6e3c1c254ad229e7 (diff)
eolian_cxx: Add implicit conversion of the returned pointer of C++ wrappers
Overloaded address-of operator for C++ Eolian wrappers for implicit converting to any ancestor pointer type when getting the object memory address. Added new grammars to aid the creation of the pointer wrappers responsible of doing the implicit conversions. Added a unit test which checks the address-of overload for arbitrary classes. Added new .eo files to be used in it.
Diffstat (limited to 'src/tests/eolian_cxx/c.eo')
-rw-r--r--src/tests/eolian_cxx/c.eo8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/eolian_cxx/c.eo b/src/tests/eolian_cxx/c.eo
new file mode 100644
index 0000000..dca3b4a
--- /dev/null
+++ b/src/tests/eolian_cxx/c.eo
@@ -0,0 +1,8 @@
1class C (A)
2{
3 legacy_prefix: null;
4 data: C_Data;
5 implements {
6 Eo.Base.constructor;
7 }
8}