aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/protocols-lazy.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/protocols-lazy.m')
-rw-r--r--test/CodeGenObjC/protocols-lazy.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGenObjC/protocols-lazy.m b/test/CodeGenObjC/protocols-lazy.m
index e91cc0aea836..a8f79026f780 100644
--- a/test/CodeGenObjC/protocols-lazy.m
+++ b/test/CodeGenObjC/protocols-lazy.m
@@ -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