diff --git a/Bar/src/Bar.cpp b/Bar/src/Bar.cpp index 176ba0d..3776b6c 100644 --- a/Bar/src/Bar.cpp +++ b/Bar/src/Bar.cpp @@ -187,4 +187,12 @@ std::string Bar::operator()() const { return std::string{"\"Bar\":{\"int\":"} + std::to_string(_intValue) + ",\"int64\":" + std::to_string(_int64Value) + "}"; } + +namespace { +void* kVar = [] { + std::cerr << "kBar" << std::endl; + return nullptr; +}(); +} // namespace + } // namespace bar diff --git a/Foo/src/Foo.cpp b/Foo/src/Foo.cpp index 24f77e2..63fff10 100644 --- a/Foo/src/Foo.cpp +++ b/Foo/src/Foo.cpp @@ -188,4 +188,11 @@ std::string Foo::operator()() const { ",\"int64\":" + std::to_string(_int64Value) + "}"; } +namespace { +void* kVar = [] { + std::cerr << "kFoo" << std::endl; + return nullptr; +}(); +} // namespace + } // namespace foo diff --git a/FooBarApp/src/main.cpp b/FooBarApp/src/main.cpp index 58bbc40..c20fe64 100644 --- a/FooBarApp/src/main.cpp +++ b/FooBarApp/src/main.cpp @@ -3,6 +3,11 @@ #include #include +void* kVar = [] { + std::cerr << "kFooBarApp\n"; + return nullptr; +}(); + int main(int /*argc*/, char** /*argv*/) { foobar::freeFunction(int{0}); std::cout << std::endl;