[cfe-commits] r80382 - /cfe/trunk/test/SemaObjC/crash-label.m
Fariborz Jahanian
fjahanian at apple.com
Fri Aug 28 10:53:06 PDT 2009
Author: fjahanian
Date: Fri Aug 28 12:53:05 2009
New Revision: 80382
URL: http://llvm.org/viewvc/llvm-project?rev=80382&view=rev
Log:
test case for my last patch.
Added:
cfe/trunk/test/SemaObjC/crash-label.m
Added: cfe/trunk/test/SemaObjC/crash-label.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/crash-label.m?rev=80382&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/crash-label.m (added)
+++ cfe/trunk/test/SemaObjC/crash-label.m Fri Aug 28 12:53:05 2009
@@ -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}}
More information about the cfe-commits
mailing list