Browse Source

Moved the initialisation of a variable to the cpp so that it works properly on Linux.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/520/head
Dimitar Dobrev 11 years ago
parent
commit
cafc14ffed
  1. 2
      tests/Basic/Basic.cpp
  2. 2
      tests/Basic/Basic.h

2
tests/Basic/Basic.cpp

@ -14,6 +14,8 @@ Foo::Foo(Private p)
{ {
} }
DLL_API const int Foo::unsafe = 10;
const char* Foo::GetANSI() const char* Foo::GetANSI()
{ {
return "ANSI"; return "ANSI";

2
tests/Basic/Basic.h

@ -39,7 +39,7 @@ public:
IgnoredType ignoredType; IgnoredType ignoredType;
int fixedArray[3]; int fixedArray[3];
void* ptr; void* ptr;
static const int unsafe = 10; static const int unsafe;
const char* GetANSI(); const char* GetANSI();
// TODO: VC++ does not support char16 // TODO: VC++ does not support char16

Loading…
Cancel
Save