diff options
author | Mike Stump <mrs@apple.com> | 2009-07-21 20:50:41 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-07-21 20:50:41 +0000 |
commit | 63038910ce56827ae3167cb88faa2864bd2bb5b2 (patch) | |
tree | 3a9ae2af2df6d04ef19f8ce8ba743a7c25b7cf8d /test/CodeGenObjC | |
parent | 793007242ba209b68ce14ec7547ac70ee981303a (diff) |
Prep for new warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76637 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC')
-rw-r--r-- | test/CodeGenObjC/property-agrr-getter.m | 2 | ||||
-rw-r--r-- | test/CodeGenObjC/protocols-lazy.m | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGenObjC/property-agrr-getter.m b/test/CodeGenObjC/property-agrr-getter.m index 0a1df123bf..0e9b040b1b 100644 --- a/test/CodeGenObjC/property-agrr-getter.m +++ b/test/CodeGenObjC/property-agrr-getter.m @@ -9,7 +9,7 @@ typedef struct { @end @implementation A --(s0) f0{} +-(s0) f0{ while (1) {} } - (unsigned) bar { return self.f0.f0; } diff --git a/test/CodeGenObjC/protocols-lazy.m b/test/CodeGenObjC/protocols-lazy.m index e91cc0aea8..a8f79026f7 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 |