summaryrefslogtreecommitdiff
path: root/tests/headers/crtp.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/crtp.hpp')
-rw-r--r--tests/headers/crtp.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/headers/crtp.hpp b/tests/headers/crtp.hpp
new file mode 100644
index 00000000..a5477c54
--- /dev/null
+++ b/tests/headers/crtp.hpp
@@ -0,0 +1,12 @@
+template<class T>
+class Base {};
+
+class Derived : public Base<Derived> {};
+
+template<class T>
+class BaseWithDestructor {
+ ~BaseWithDestructor();
+};
+
+class DerivedFromBaseWithDestructor :
+ public BaseWithDestructor<DerivedFromBaseWithDestructor> {};