summaryrefslogtreecommitdiff
path: root/tests/headers/class.hpp
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-04-02 02:59:00 +0200
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-04-02 03:29:56 +0200
commit6ec0d6dd7734b82d30122663a1ead436d09c9dfd (patch)
tree22ecc4f7e548ae1de1940ccfbe06feca2d4829c8 /tests/headers/class.hpp
parent253d362ab824fab1c4951a05b2d6eb01e1716421 (diff)
Don't generate derive(Clone), make a manual impl instead using copy
This is in order to bypass rustc's limits with large arrays. Still can't work with templates (cc @nox).
Diffstat (limited to 'tests/headers/class.hpp')
-rw-r--r--tests/headers/class.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/headers/class.hpp b/tests/headers/class.hpp
index 53894ab3..4d795363 100644
--- a/tests/headers/class.hpp
+++ b/tests/headers/class.hpp
@@ -1,3 +1,11 @@
class C {
int a;
+ // More than rust limits (32)
+ char big_array[33];
+};
+
+class WithDtor {
+ int b;
+
+ ~WithDtor() {}
};