From b651acfc39d2bd7e839e8de8045decc82d5c8b9e Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Wed, 7 Apr 2010 19:19:28 +0200 Subject: [PATCH] Unit testing: Testing handling of Borland C++ properties --- test/testclass.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/testclass.cpp b/test/testclass.cpp index 6fca09f02..b12c988ca 100644 --- a/test/testclass.cpp +++ b/test/testclass.cpp @@ -1824,6 +1824,16 @@ private: " Fred() { }\n" "}\n"); ASSERT_EQUALS("", errout.str()); + + checkUninitVar("class Fred\n" + "{\n" + "__published:\n" + " int * i_;\n" + " __property int * i = {read=i_, write=i_};\n" + "public:\n" + " Fred() { i_ = 0; }\n" + "}\n"); + ASSERT_EQUALS("", errout.str()); } // Borland C++: No FP for properties