]> granicus.if.org Git - clang/commitdiff
Prep for new warning.
authorMike Stump <mrs@apple.com>
Tue, 21 Jul 2009 20:50:41 +0000 (20:50 +0000)
committerMike Stump <mrs@apple.com>
Tue, 21 Jul 2009 20:50:41 +0000 (20:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76637 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/property-agrr-getter.m
test/CodeGenObjC/protocols-lazy.m

index 0a1df123bffe0657f9928bc10282927fd0d1a7ad..0e9b040b1b989936e54c987ae15ae2b1951620ed 100644 (file)
@@ -9,7 +9,7 @@ typedef struct {
 @end
 
 @implementation A
--(s0) f0{}
+-(s0) f0{ while (1) {} }
 - (unsigned) bar {
   return self.f0.f0;
 }
index e91cc0aea836e49d89cf10bd2dfa60eafe34f8eb..a8f79026f780a1821e4ca5b37069d804d9c403f7 100644 (file)
@@ -26,7 +26,7 @@ void f1() { id x = @protocol(P3); }
 // RUN: grep OBJC_PROTOCOL_INSTANCE_METHODS_P4 %t | count 3 &&
 @protocol P4 -im1; @end
 @interface I0<P4> @end
-@implementation I0 -im1 {}; @end
+@implementation I0 -im1 { return 0; }; @end
 
 // Definition following forward reference.
 // RUN: grep OBJC_PROTOCOL_P5 %t | count 3  &&
@@ -42,7 +42,7 @@ void f2() { id x = @protocol(P5); } // This generates a forward
 // RUN: grep OBJC_PROTOCOL_INSTANCE_METHODS_P6 %t | count 3 &&
 @protocol P6 -im1; @end
 @interface I1<P6> @end
-@implementation I1 -im1 {}; @end
+@implementation I1 -im1 { return 0; }; @end
 void f3() { id x = @protocol(P6); }
 
 // RUN: true