diff options
author | Steve Naroff <snaroff@apple.com> | 2009-03-03 00:45:38 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-03-03 00:45:38 +0000 |
commit | f3833d70bed4d60ef4dec4d1e685c5e1ce3f5fed (patch) | |
tree | 2bb16a1b70f2daf2030647cf047637a108115467 /clang/test/SemaObjC/method-no-context.m | |
parent | cc40a61af76eb3c49ce5b68c2f92076b5989e12b (diff) | |
download | bcm5719-llvm-f3833d70bed4d60ef4dec4d1e685c5e1ce3f5fed.tar.gz bcm5719-llvm-f3833d70bed4d60ef4dec4d1e685c5e1ce3f5fed.zip |
Fix <rdar://problem/6635908> crash on invalid
llvm-svn: 65909
Diffstat (limited to 'clang/test/SemaObjC/method-no-context.m')
-rw-r--r-- | clang/test/SemaObjC/method-no-context.m | 4 |
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 00000000000..484322e29ed --- /dev/null +++ b/clang/test/SemaObjC/method-no-context.m @@ -0,0 +1,4 @@ +// RUN: clang -fsyntax-only -verify %s + +- im0 { int a; return 0; // expected-error{{missing context for method declaration}} +// expected-error{{expected '}'}} |