diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-17 18:59:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-17 18:59:42 +0300 |
commit | 14c42add529be98ba8c398db3a4cc1c490fe7d59 (patch) | |
tree | 8b2ed771367820d8c9572bbf8fd225115fc6bfe0 /test/test7.cpp | |
parent | 16e87211d7b45b372a6430b28637f2367cf89887 (diff) | |
download | paranucker-14c42add529be98ba8c398db3a4cc1c490fe7d59.tar.gz paranucker-14c42add529be98ba8c398db3a4cc1c490fe7d59.tar.bz2 paranucker-14c42add529be98ba8c398db3a4cc1c490fe7d59.tar.xz paranucker-14c42add529be98ba8c398db3a4cc1c490fe7d59.zip |
Update test7 and test results.
Diffstat (limited to 'test/test7.cpp')
-rw-r--r-- | test/test7.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test7.cpp b/test/test7.cpp index 0b70b91..4669b1f 100644 --- a/test/test7.cpp +++ b/test/test7.cpp @@ -1,4 +1,5 @@ #include <string> +#include <vector> struct Struct1 { @@ -15,6 +16,8 @@ struct Struct1 class Object1 { int k; + std::vector<Struct1*> vec1; + void func1() { } @@ -46,4 +49,11 @@ class Object1 return; sptr->num = 0; } + + void func7(Struct1 *const sptr) + { + if (!sptr) + return; + vec1.push_back(sptr); + } }; |