diff options
author | Sergio Martins <smartins@kde.org> | 2015-11-13 14:18:48 +0000 |
---|---|---|
committer | Sergio Martins <smartins@kde.org> | 2015-11-13 14:18:48 +0000 |
commit | 80688d0c928f02ecc9b1fd06dc1520d1ca33bfa4 (patch) | |
tree | 691678b3026c81a8d2e76cb0ff4a6dc94eacf18b /tests/function-args-by-ref | |
parent | 3b2952ef49eb5afcc67538706cf4cab13acb1971 (diff) |
function-args-by-ref: Test =default ctors and dtors
Diffstat (limited to 'tests/function-args-by-ref')
-rw-r--r-- | tests/function-args-by-ref/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/function-args-by-ref/main.cpp b/tests/function-args-by-ref/main.cpp index 88acdd27..17430a36 100644 --- a/tests/function-args-by-ref/main.cpp +++ b/tests/function-args-by-ref/main.cpp @@ -122,3 +122,15 @@ void testNoUserCtorsButNotTrivial(NoUserCtorsButNotTrivial) { } + +struct TrivialWithDefaultCopyCtorAndDtor +{ + TrivialWithDefaultCopyCtorAndDtor(const TrivialWithDefaultCopyCtorAndDtor &) = default; + ~TrivialWithDefaultCopyCtorAndDtor() = default; + int m; +}; + +void testTrivialWithDefaultCopyCtorAndDtor(TrivialWithDefaultCopyCtorAndDtor) +{ + +} |