[cfe-commits] r76637 - in /cfe/trunk/test/CodeGenObjC: property-agrr-getter.m protocols-lazy.m

Mike Stump mrs at apple.com
Tue Jul 21 13:50:44 PDT 2009


Author: mrs
Date: Tue Jul 21 15:50:41 2009
New Revision: 76637

URL: http://llvm.org/viewvc/llvm-project?rev=76637&view=rev
Log:
Prep for new warning.

Modified:
    cfe/trunk/test/CodeGenObjC/property-agrr-getter.m
    cfe/trunk/test/CodeGenObjC/protocols-lazy.m

Modified: cfe/trunk/test/CodeGenObjC/property-agrr-getter.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/property-agrr-getter.m?rev=76637&r1=76636&r2=76637&view=diff

==============================================================================
--- cfe/trunk/test/CodeGenObjC/property-agrr-getter.m (original)
+++ cfe/trunk/test/CodeGenObjC/property-agrr-getter.m Tue Jul 21 15:50:41 2009
@@ -9,7 +9,7 @@
 @end
 
 @implementation A
--(s0) f0{}
+-(s0) f0{ while (1) {} }
 - (unsigned) bar {
   return self.f0.f0;
 }

Modified: cfe/trunk/test/CodeGenObjC/protocols-lazy.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/protocols-lazy.m?rev=76637&r1=76636&r2=76637&view=diff

==============================================================================
--- cfe/trunk/test/CodeGenObjC/protocols-lazy.m (original)
+++ cfe/trunk/test/CodeGenObjC/protocols-lazy.m Tue Jul 21 15:50:41 2009
@@ -26,7 +26,7 @@
 // RUN: grep OBJC_PROTOCOL_INSTANCE_METHODS_P4 %t | count 3 &&
 @protocol P4 -im1; @end
 @interface I0<P4> @end
- at implementation I0 -im1 {}; @end
+ at implementation I0 -im1 { return 0; }; @end
 
 // Definition following forward reference.
 // RUN: grep OBJC_PROTOCOL_P5 %t | count 3  &&
@@ -42,7 +42,7 @@
 // RUN: grep OBJC_PROTOCOL_INSTANCE_METHODS_P6 %t | count 3 &&
 @protocol P6 -im1; @end
 @interface I1<P6> @end
- at implementation I1 -im1 {}; @end
+ at implementation I1 -im1 { return 0; }; @end
 void f3() { id x = @protocol(P6); }
 
 // RUN: true





More information about the cfe-commits mailing list