aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/cpp11_default_delete.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/cpp11_default_delete.i')
-rw-r--r--Examples/test-suite/cpp11_default_delete.i9
1 files changed, 9 insertions, 0 deletions
diff --git a/Examples/test-suite/cpp11_default_delete.i b/Examples/test-suite/cpp11_default_delete.i
index 49a677060..79c02cddc 100644
--- a/Examples/test-suite/cpp11_default_delete.i
+++ b/Examples/test-suite/cpp11_default_delete.i
@@ -69,4 +69,13 @@ struct moveonly {
moveonly& operator=(moveonly&&) = default;
~moveonly() = default;
};
+
+struct ConstructorThrow {
+ ConstructorThrow() throw() = default;
+ ConstructorThrow(const ConstructorThrow&) throw() = delete;
+ ConstructorThrow(ConstructorThrow&&) throw() = delete;
+ ConstructorThrow& operator=(const ConstructorThrow&) throw() = delete;
+ ~ConstructorThrow() throw() = default;
+};
+
%}