[llvm-commits] [test-suite] r114022 - in /test-suite/trunk/SingleSource/UnitTests/ObjC: dot-syntax-1.m dot-syntax-1.reference_output

Fariborz Jahanian fjahanian at apple.com
Wed Sep 15 14:25:37 PDT 2010


Author: fjahanian
Date: Wed Sep 15 16:25:36 2010
New Revision: 114022

URL: http://llvm.org/viewvc/llvm-project?rev=114022&view=rev
Log:
Modified test case to generate same output with
old and new nonfragile abi. Thanks Daniel for
the suggestion.

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

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=114022&r1=114021&r2=114022&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 16:25:36 2010
@@ -85,9 +85,7 @@
 @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.
+ at dynamic x;
 -(int) _getX {
   printf("-[ Bot2 _getX ]\n");
   return 0;
@@ -119,9 +117,7 @@
 @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.
+ at dynamic x;
 -(int) x {
   printf("-[ Bot3 x ]\n");
   return 0;

Modified: test-suite/trunk/SingleSource/UnitTests/ObjC/dot-syntax-1.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/ObjC/dot-syntax-1.reference_output?rev=114022&r1=114021&r2=114022&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/ObjC/dot-syntax-1.reference_output (original)
+++ test-suite/trunk/SingleSource/UnitTests/ObjC/dot-syntax-1.reference_output Wed Sep 15 16:25:36 2010
@@ -3,6 +3,8 @@
 -[ Bot1 _getX ]
 -[ Bot1 _setX: 10 ]
 -[ Bot2 _getX ]
+-[ Top2 _setX: 10 ]
+-[ Top3 _getX ]
 -[ Bot3 _setX: 10 ]
 -[ Bot4 _getX ]
 -[ Top4 _setX: 10 ]





More information about the llvm-commits mailing list