diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-01-29 13:37:07 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-01-30 00:17:29 +0100 |
commit | fedca4883881b3d589df06a8808fef22ce205808 (patch) | |
tree | e88b1005701d46c0271435d79e5e00d0c753733d /tests/headers/class.hpp | |
parent | be02472fced1b558262c6bbbc0f92f6a0c95ca70 (diff) |
Force copy for incomplete arrays.
These aren't extremely great, since this usually requires extra bookkeeping. But
C allows it, so let's keep the same semantics.
Diffstat (limited to 'tests/headers/class.hpp')
-rw-r--r-- | tests/headers/class.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/headers/class.hpp b/tests/headers/class.hpp index 67ecb37b..1de16471 100644 --- a/tests/headers/class.hpp +++ b/tests/headers/class.hpp @@ -32,6 +32,11 @@ class WithDtor { ~WithDtor() {} }; +class IncompleteArrayNonCopiable { + void* whatever; + C incomplete_array[]; +}; + union Union { float d; int i; |