Browse Source

Added a compilation test for a free function with a class parameter named "ret".

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/46/head
Dimitar Dobrev 13 years ago
parent
commit
0c1240d97e
  1. 7
      tests/Basic/Basic.cpp
  2. 4
      tests/Basic/Basic.h

7
tests/Basic/Basic.cpp

@ -69,4 +69,9 @@ Foo Hello::RetFoo(int a, float b) @@ -69,4 +69,9 @@ Foo Hello::RetFoo(int a, float b)
int Hello::RetEnum(Enum e)
{
return (int)e;
}
}
int unsafeFunction(const Bar& ret)
{
return ret.A;
}

4
tests/Basic/Basic.h

@ -60,4 +60,6 @@ public: @@ -60,4 +60,6 @@ public:
int AddBar2(Bar2);
int RetEnum(Enum);
};
};
int unsafeFunction(const Bar& ret);

Loading…
Cancel
Save