[llvm-commits] [test-suite] r147873 - in /test-suite/trunk/SingleSource/UnitTests/ObjC++: property-reference-object.mm property-reference-object.reference_output

Fariborz Jahanian fjahanian at apple.com
Tue Jan 10 12:45:02 PST 2012


Author: fjahanian
Date: Tue Jan 10 14:45:01 2012
New Revision: 147873

URL: http://llvm.org/viewvc/llvm-project?rev=147873&view=rev
Log:
Added test for atomic property of c++ objects
with non-trivial copy/assignment methods using the
new api. // rdar://6137845

Modified:
    test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference-object.mm
    test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference-object.reference_output

Modified: test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference-object.mm
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/ObjC%2B%2B/property-reference-object.mm?rev=147873&r1=147872&r2=147873&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference-object.mm (original)
+++ test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference-object.mm Tue Jan 10 14:45:01 2012
@@ -1,5 +1,10 @@
 #import <Foundation/Foundation.h>
 
+extern "C"
+void objc_copyCppObjectAtomic(void *dest, const void *src, void (*copyHelper) (void *dest, const void *source)) {
+   copyHelper(dest, src);
+}
+
 static int count;
 class Foo
 {
@@ -48,7 +53,7 @@
 }
 
 @property (assign, readwrite, nonatomic) const Foo& cppObjectNonAtomic;
- at property (nonatomic, assign, readwrite) const Foo& cppObjectAtomic;
+ at property (assign, readwrite) const Foo  cppObjectAtomic;
 @property (assign, readwrite, nonatomic) const Foo& cppObjectDynamic;
 @end
 

Modified: test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference-object.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/ObjC%2B%2B/property-reference-object.reference_output?rev=147873&r1=147872&r2=147873&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference-object.reference_output (original)
+++ test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference-object.reference_output Tue Jan 10 14:45:01 2012
@@ -2,6 +2,8 @@
 Foo(1,1)
 Foo(2,2)
 Foo(3,3)
+Foo(4,3)
+~Foo(4, 3)
 ~Foo(3, 3)
 ~Foo(2, 3)
 ~Foo(1, 3)





More information about the llvm-commits mailing list