summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/method-no-context.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/method-no-context.m')
-rw-r--r--clang/test/SemaObjC/method-no-context.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/method-no-context.m b/clang/test/SemaObjC/method-no-context.m
new file mode 100644
index 0000000..c087549
--- /dev/null
+++ b/clang/test/SemaObjC/method-no-context.m
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+- im0 { // expected-error{{missing context for method declaration}}
+ int a; return 0;