summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/crash-label.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/crash-label.m')
-rw-r--r--clang/test/SemaObjC/crash-label.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/crash-label.m b/clang/test/SemaObjC/crash-label.m
new file mode 100644
index 0000000..b0ca5b5
--- /dev/null
+++ b/clang/test/SemaObjC/crash-label.m
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+ - (NSDictionary*) _executeScript:(NSString *)source { // expected-error 2 {{expected a type}} \
+ // expected-error {{missing context for method declaration}}
+Exit: [nilArgs release];
+}
+- (NSDictionary *) _setupKernelStandardMode:(NSString *)source { // expected-error 2 {{expected a type}} \
+ // expected-error {{missing context for method declaration}}
+ Exit: if(_ciKernel && !success ) {