diff options
author | Emilio Cobos Álvarez <me@emiliocobos.me> | 2016-04-16 03:38:33 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <me@emiliocobos.me> | 2016-04-16 03:38:33 +0200 |
commit | 3cf04d17d85b5766d7c120a4ee6ce97598b38ec7 (patch) | |
tree | f0183d87062927d19b929ca2b9df0d1b0450d006 /tests/headers/class_with_dtor.hpp | |
parent | 0aef5b97160a64e421df7185917f33b643abff8a (diff) |
tests: Annotate and add more tests
Diffstat (limited to 'tests/headers/class_with_dtor.hpp')
-rw-r--r-- | tests/headers/class_with_dtor.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/headers/class_with_dtor.hpp b/tests/headers/class_with_dtor.hpp new file mode 100644 index 00000000..b9bf74e1 --- /dev/null +++ b/tests/headers/class_with_dtor.hpp @@ -0,0 +1,13 @@ + + +template <typename T> +class HandleWithDtor { + T* ptr; + ~HandleWithDtor() {} +}; + +typedef HandleWithDtor<int> HandleValue; + +class WithoutDtor { + HandleValue shouldBeWithDtor; +}; |