[llvm-commits] [test-suite] r113997 - /test-suite/trunk/SingleSource/UnitTests/ObjC/dot-syntax-1.m

Fariborz Jahanian fjahanian at apple.com
Wed Sep 15 11:58:05 PDT 2010


Author: fjahanian
Date: Wed Sep 15 13:58:05 2010
New Revision: 113997

URL: http://llvm.org/viewvc/llvm-project?rev=113997&view=rev
Log:
Added comments to explain new behavior under
the default -fobjc-nonfragile-abi2.

Modified:
    test-suite/trunk/SingleSource/UnitTests/ObjC/dot-syntax-1.m

Modified: test-suite/trunk/SingleSource/UnitTests/ObjC/dot-syntax-1.m
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/ObjC/dot-syntax-1.m?rev=113997&r1=113996&r2=113997&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/ObjC/dot-syntax-1.m (original)
+++ test-suite/trunk/SingleSource/UnitTests/ObjC/dot-syntax-1.m Wed Sep 15 13:58:05 2010
@@ -85,6 +85,9 @@
 @end
 
 @implementation Bot2
+// default synthesis of Bot2 synthesizes Bot2::_setX as a setter.
+// So it gets called instead of Top2's _setX when Bot2 is not
+// default synthesized.
 -(int) _getX {
   printf("-[ Bot2 _getX ]\n");
   return 0;
@@ -116,6 +119,9 @@
 @end
 
 @implementation Bot3
+// default synthesis of Bot3 synthesizes Bot3::_getX as getter
+// which is then called, instead of calling Top3::_getX which 
+// would get called had Bot3 not default synthesized.
 -(int) x {
   printf("-[ Bot3 x ]\n");
   return 0;





More information about the llvm-commits mailing list