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

2
tests/Basic/Basic.h

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

Loading…
Cancel
Save