Fariborz Jahanian | 0339d72 | 2010-09-10 18:56:35 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-nonfragile-abi -fexceptions -o - %s | FileCheck %s |
| 2 | // rdar://8409336 |
| 3 | |
| 4 | struct TFENode { |
| 5 | void GetURL() const; |
| 6 | }; |
| 7 | |
| 8 | @interface TNodeIconAndNameCell |
| 9 | - (const TFENode&) node; |
| 10 | @end |
| 11 | |
| 12 | @implementation TNodeIconAndNameCell |
| 13 | - (const TFENode&) node { |
| 14 | // CHECK: call %struct.TFENode* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend |
| 15 | // CHECK-NEXT: call void @_ZNK7TFENode6GetURLEv(%struct.TFENode* %{{.*}}) |
| 16 | self.node.GetURL(); |
| 17 | } // expected-warning {{control reaches end of non-void function}} |
| 18 | @end |