1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
5 int & at(int __n) { return gint; }
6 const int& at(int __n) const { return gint; }
9 static SetSection gSetSection;
12 - (SetSection&)sections;
15 @implementation SetShow
16 - (SetSection&) sections {
17 // [self sections].at(100);
18 self.sections.at(100);
23 // CHECK: [[SELF:%.*]] = alloca ptr, align
24 // CHECK: [[T0:%.*]] = load {{.*}}, ptr [[SELF]], align
25 // CHECK: [[T1:%.*]] = load {{.*}}, ptr @OBJC_SELECTOR_REFERENCES_
26 // CHECK: [[C:%.*]] = call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) ptr @objc_msgSend
27 // CHECK: call noundef nonnull align {{[0-9]+}} dereferenceable({{[0-9]+}}) ptr @_ZN10SetSection2atEi(ptr {{[^,]*}} [[C]]