summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/selector-ref-invariance.m
blob: 18fb828d29de5d80fa842623a1304073b7975820 (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*, i8** @OBJC_SELECTOR_REFERENCES_, align 8, !invariant.load
// CHECK: @objc_msgSend
  [x foo];
}