diff --git a/Source/kwsys/kwsysPlatformCxxTests.cxx b/Source/kwsys/kwsysPlatformCxxTests.cxx index c1feca1d7..f3814c0b3 100644 --- a/Source/kwsys/kwsysPlatformCxxTests.cxx +++ b/Source/kwsys/kwsysPlatformCxxTests.cxx @@ -86,14 +86,15 @@ template class A { public: - U* ptr; - template U m(V* p) { return *ptr = *p; } + U u; + A(): u(0) {} + template V m(V* p) { return *p = u; } }; int main() { - A a; - short s = 0; + A a; + int s = 1; return a.m(&s); } #endif