diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-10-21 02:49:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-21 02:49:30 -0500 |
commit | c21c6f55d5aaf87b0dc6ce4a86aa0614b39713c5 (patch) | |
tree | d2e834552775e65c8c6c0d3f67ae6140a4ad280a /tests/headers/class.hpp | |
parent | b9030224dd83b5cb8bed580908e63c2a6c21708a (diff) | |
parent | 7b432d31759fe3045402dd4af5401330256d2ac4 (diff) |
Auto merge of #66 - emilio:const-methods, r=nox
Take pointer constness into account, to fix generation of const methods.
We signal method constness in the `this` pointer creating a `const` pointer, but the `to_rust_ty` implementation never checked that.
Diffstat (limited to 'tests/headers/class.hpp')
-rw-r--r-- | tests/headers/class.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/headers/class.hpp b/tests/headers/class.hpp index a34d4d8e..e753f186 100644 --- a/tests/headers/class.hpp +++ b/tests/headers/class.hpp @@ -18,3 +18,12 @@ union Union { class WithUnion { Union data; }; + +class RealAbstractionWithTonsOfMethods { + void foo(); +public: + void bar() const; + void bar(); + void bar(int foo); + static void sta(); +}; |