diff options
Diffstat (limited to 'test/gtest_dll_test_.cc')
-rw-r--r-- | test/gtest_dll_test_.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/gtest_dll_test_.cc b/test/gtest_dll_test_.cc index c99358a..3fb6181 100644 --- a/test/gtest_dll_test_.cc +++ b/test/gtest_dll_test_.cc @@ -484,6 +484,11 @@ class MyOtherListener : public EmptyTestEventListener {}; int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); + void (*wide_init_google_test)(int*, wchar_t**) = &testing::InitGoogleTest; + + // Ensures the linker doesn't throw away reference to wide InitGoogleTest. + GTEST_CHECK_(wide_init_google_test != NULL); + TestEventListeners& listeners = UnitTest::GetInstance()->listeners(); TestEventListener* listener = new MyListener; |