]> granicus.if.org Git - clang/commitdiff
test case for my last patch.
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 28 Aug 2009 17:53:05 +0000 (17:53 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 28 Aug 2009 17:53:05 +0000 (17:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80382 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/crash-label.m [new file with mode: 0644]

diff --git a/test/SemaObjC/crash-label.m b/test/SemaObjC/crash-label.m
new file mode 100644 (file)
index 0000000..ff40cc6
--- /dev/null
@@ -0,0 +1,9 @@
+// RUN: clang-cc  -fsyntax-only -verify %s
+
+  - (NSDictionary*) _executeScript:(NSString *)source { // expected-error 2 {{expected a type}} \
+                                                       // expected-error {{missing context for method declaration}} 
+                          Exit:  [nilArgs release]; // expected-error {{use of undeclared identifier}}
+                          }
+                                     - (NSDictionary *) _setupKernelStandardMode:(NSString *)source { // expected-error 2 {{expected a type}} \
+expected-error {{missing context for method declaration}}
+                           Exit:   if(_ciKernel && !success ) { // expected-error {{use of undeclared identifier}} // expected-error 2 {{expected}}