First half of a fix for the "objc message send in initializer" bug. This only
handles message sends with typenames to start with.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46366 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Parser/objc-init.m b/test/Parser/objc-init.m
new file mode 100644
index 0000000..43e6c2e
--- /dev/null
+++ b/test/Parser/objc-init.m
@@ -0,0 +1,13 @@
+// RUN: clang -fsyntax-only -verify %s
+// rdar://5707001
+
+@interface NSNumber;
+- () METH;
+
+@end
+
+int main() {
+ id objects[] = {[NSNumber METH]};
+ return 0;
+}
+