From 14c42add529be98ba8c398db3a4cc1c490fe7d59 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Jun 2015 18:59:42 +0300 Subject: Update test7 and test results. --- test/test7.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/test7.cpp') 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 +#include struct Struct1 { @@ -15,6 +16,8 @@ struct Struct1 class Object1 { int k; + std::vector 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); + } }; -- cgit v1.2.3-60-g2f50