1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fexceptions -o - %s | FileCheck %s
7 @interface TNodeIconAndNameCell
8 - (const TFENode&) node;
11 @implementation TNodeIconAndNameCell
12 - (const TFENode&) node {
13 // CHECK: call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) ptr @objc_msgSend
14 // CHECK-NEXT: call void @_ZNK7TFENode6GetURLEv(ptr {{[^,]*}} %{{.*}})
16 } // expected-warning {{non-void function does not return a value}}
23 void f0(const X &parent);
28 // CHECK: [[PRP:%.*]] = call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) ptr @objc_msgSend
29 // CHECK-NEXT:call void @_Z2f0RK1X(ptr noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) [[PRP]])
32 // CHECK: [[MSG:%.*]] = call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) ptr @objc_msgSend
33 // CHECK-NEXT:call void @_Z2f0RK1X(ptr noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) [[MSG]])
38 @property (readonly) int myProperty;
44 (void) obj.myProperty;
46 static_cast<void>(obj.myProperty);
47 static_cast<void>(obj.myGetter);
51 // CHECK-LABEL: define{{.*}} void @_Z5test2v()
52 // CHECK: call noundef i32
53 // CHECK: call noundef double
54 // CHECK: call noundef i32
55 // CHECK: call noundef double
56 // CHECK: call noundef i32
57 // CHECK: call noundef double
60 int test3(Test2 *obj) { return obj.myProperty; }