blob: c24dd1f80aa2f5fe71da9d78ee3b87fb7025996b [file] [log] [blame]
John McCalld1e40d52011-10-02 01:16:38 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
Fariborz Jahanianb19c76e2011-02-08 22:33:23 +00002// rdar://8966864
3
4@interface Foo
5-(float)myfo;
6-(void)setMyfo: (int)p;
7@end
8
9void bar(Foo *x) {
10 x.myfo++;
11}
12
Fariborz Jahanianbf1f8262011-02-28 21:19:34 +000013// CHECK: [[C1:%.*]] = call float bitcast (i8* (i8*, i8*, ...)* @objc_msgSend
Fariborz Jahanianb19c76e2011-02-08 22:33:23 +000014// CHECK: [[I:%.*]] = fadd float [[C1]], 1.000000e+00
15// CHECK: [[CONV:%.*]] = fptosi float [[I]] to i32
Sunil Srivastava68c48082015-05-12 16:48:43 +000016// CHECK: [[T3:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_.2
Fariborz Jahanianbf1f8262011-02-28 21:19:34 +000017// CHECK: call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend