Fix http://llvm.org/bugs/show_bug.cgi?id=2106.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47768 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/missing-method-context.m b/test/Sema/missing-method-context.m
new file mode 100644
index 0000000..20437b7
--- /dev/null
+++ b/test/Sema/missing-method-context.m
@@ -0,0 +1,4 @@
+// RUN: clang %s -verify -fsyntax-only
+- (void)compilerTestAgainst;  // expected-error {{missing context for method declaration}}
+
+void xx();  // expected-error {{expected method body}}