Browse Source

Added a test for free functions with an indirect return type.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/48/head
Dimitar Dobrev 13 years ago
parent
commit
fc1637f532
  1. 5
      tests/Basic/Basic.cpp
  2. 2
      tests/Basic/Basic.h

5
tests/Basic/Basic.cpp

@ -88,3 +88,8 @@ Bar operator+(const Bar& b1, const Bar& b2) @@ -88,3 +88,8 @@ Bar operator+(const Bar& b1, const Bar& b2)
b.B = b1.B + b2.B;
return b;
}
Bar indirectReturn()
{
return Bar();
}

2
tests/Basic/Basic.h

@ -74,3 +74,5 @@ public: @@ -74,3 +74,5 @@ public:
DLL_API Bar operator+(const Bar &, const Bar &);
int DLL_API unsafeFunction(const Bar& ret, char* testForString, void (*foo)(int));
DLL_API Bar indirectReturn();

Loading…
Cancel
Save