summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/selector-ref-invariance.m
blob: e356419de9e8c1947109c1e793b0bd82a7bde3a6 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -triple x86_64-apple-darwin11 -emit-llvm -fblocks -o - %s | FileCheck %s

// rdar://6027699

void test(id x) {
// CHECK: load i8** @"\01L_OBJC_SELECTOR_REFERENCES_", !invariant.load
// CHECK: @objc_msgSend
  [x foo];
}