Test for David Chisnall's -fobjc-sender-dependent-dispatch patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72330 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenObjC/messages.m b/test/CodeGenObjC/messages.m
index b2bda67..b4536ce 100644
--- a/test/CodeGenObjC/messages.m
+++ b/test/CodeGenObjC/messages.m
@@ -1,4 +1,10 @@
-// RUN: clang-cc -fnext-runtime --emit-llvm -o %t %s
+// RUN: clang-cc -fnext-runtime --emit-llvm -o %t %s &&
+// RUN: grep "objc_msgSend" %t | count 6 &&
+// RUNX: clang-cc -fgnu-runtime --emit-llvm -o %t %s &&
+// RUNX: grep "objc_msg_lookup" %t | count 6 &&
+// RUNY: clang-cc -fgnu-runtime -fobjc-sender-dependent-dispatch --emit-llvm -o %t %s &&
+// RUNY: grep "objc_msg_lookup_sender" %t | count 6
+// RUN: true
typedef struct {
int x;